Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3120 by [email protected]: powers of noncommutative Mul
http://code.google.com/p/sympy/issues/detail?id=3120

In [1]: from sympy import *

In [2]: A,B=symbols('A B', commutative=False)

In [3]: expand((A*B)**2)
Out[3]: A**2*B**2

In [4]: expand((A*B/A)**2)
Out[4]: A**2*B**2*A**(-2)

Expected[3]: A*B*A*B
Expected[4]: A*B*B/A

This is with latest master. It seems that it should be fixed by the fix to issue 1261, but when I checkout ddc6c37888fa25b98797ce27fdef7ce37bceb0b2 I get the same bad result as above (with a small difference in printing /A**2 instead of A**(-2)). So I have a feeling that this has never worked properly.

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