Comment #38 on issue 1358 by wflynny: (e*f*e*f).subs(e*f,f*e+h) fails if e*f is not commutative http://code.google.com/p/sympy/issues/detail?id=1358
That's weird because I just did that and got the right answer. I know that the patch fails mostly in areas that bring in polynomial decomposition. That's why some of those integral tests fail. Here's what I got: In [1]: import sympy as sp In [2]: x,y=sp.symbols('xy') In [3]: ((x*y)**2).subs(x*y,2) Out[3]: 4 In [4]: w,z=sp.symbols('wz') In [5]: ((w*z)**2).subs(w*z,2) Out[5]: 4 In [6]: w,z=sp.symbols('wz',commutative=False) In [7]: ((w*z)**2).subs(w*z,2) Out[7]: 4 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-issues@googlegroups.com To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---