Comment #12 on issue 642 by [email protected]: collect is not nc-aware
(was: wrong answer from simplifying non-commutative symbols)
http://code.google.com/p/sympy/issues/detail?id=642
Also rcollect and combsimp give wrong results.
$ ipython
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
Type "copyright", "credits" or "license" for more information.
IPython 0.10.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from sympy import *
In [2]: A, B = symbols('A B', commutative=False)
In [3]: p = A*B - B*A
In [4]: collect(p, A)
Out[4]: 0
In [5]: rcollect(p, A)
Out[5]: 0
In [6]: combsimp(p)
Out[6]: -A*B + B*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.