I've just started looking into Sage and it is very impressive but I'm trying to
do some simple things like comparing if 2 formulas are the same. I just
discovered bool() which apparently checks to see if the expanded forms of the
polynomials are the same. Example below.
x = var('x')
a = (x-1)^2
b = x^2 - 2*x + 1
bool(a==b)
Outputs: True.
Is there a function that will check to see if the expressions are exactly the
same instead of equivalent? I would like something like: identical(a==b) and
it outputs False because of the format of the expressions.
Thanks.
>From Seema.
--
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.