Comment #9 on issue 642 by [email protected]: wrong answer from simplifying non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=642

Note that coeff has been written to be nc-aware;

(A*B-A*B*A).coeff(A,right=1)
B - B*A
(A*B-A*B*A).coeff(A,right=0)
A*B

So for any non-commutative collecting, perhaps collect could use coeff to do the collecting.

--
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.

Reply via email to