Comment #52 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
I think this should be closed - the subs issue seems to finally be solved. However, we should open up a new issue for this (e*f)**2 == e**2*f**2. The offending line seems to be at line 335 in _eval_power in mul.py: >>> l = [s**e for s in rest] This line should probably be rewritten to something like (but more elegant) l = 1 for i in range(e): l = l*b. Just a quick thought. -- 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-iss...@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.