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

New issue 2022 by julien.rioux: inconsistent behaviour of subs when using non-commutative symbols
http://code.google.com/p/sympy/issues/detail?id=2022

Using .subs(), what works with commutative symbols doesn't as soon as one non-commutative symbol appears in the expression.

Steps to reproduce:

In [1]: import sympy

In [2]: print sympy.__version__
0.6.7-git

In [3]: sympy.var('a b c A')
Out[3]: (a, b, c, A)

In [4]: (a*b*A).subs(a*b,c)
Out[4]: A*c

In [5]: A=sympy.Symbol('A',commutative=False)

In [6]: (a*b*A).subs(a*b,c)
Out[6]: a*b*A

Expected: Out[6] to be identical as Out[4]

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