Forwarding this to sage-support where it will get more readership.

> f(x)=x**2-4
> g(x)=x**2+2*x+1
> f(2)==g(-1)
>
> What output should I get? I was expecting: True Am I crazy? Needless
> to say I didn't!

0==0


Sage doesn't actually evaluate all booleans automatically.  We try to
leave them unevaluated sometimes, or much of the time (like x==y or
something).

Unfortunately, I cannot find any of the threads where this is
discussed - some are even relatively recent!  I'm really sorry.
Robert Bradshaw, I think, has explained this very well at times (?).
So hopefully on sage-support someone else will explain.  In the
meantime, try

sage: bool(f(2)==g(-1))
True

as a workaround that in any case explains to the students exactly what
is going on.

- kcrisman

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en.

Reply via email to