Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium NonCommutative
New issue 2902 by [email protected]: is_commutative weirdness
http://code.google.com/p/sympy/issues/detail?id=2902
eq=A+A**2+1
A.is_commutative
False
A+A**2==eq-1
True
(A+A**2).is_commutative
False
(eq-1).is_commutative
True
How can two equal expressions have different answers for is_commutative?
The args are the same:
(A+A**2).args
(A**2, A)
(eq-1).args
(A**2, A)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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/sympy-issues?hl=en.