Hello,

The following is I guess for the symbolic ring and is what we want
sage: cmp((x+1)^2, x^2 + 2*x + 1)
1

while the following is in a polynomial ring and is also what we want
sage: cmp((c+1)^2, c^2 + 2*c+1)
0

The only issue is about hashing and not == vs cmp, right ?

Note that there are other similar troubles with hashing, equality and
comparisons:
 - http://wiki.sagemath.org/EqualityCoercion
 - #14608 on trac

Cheers,
Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to