Updates: Status: WontFix Comment #9 on issue 1836 by smi...@gmail.com: subs can see the 2 arg sum http://code.google.com/p/sympy/issues/detail?id=1836
subs should not be doing rearrangements of the expressions (this would be like doing a spellcheck as part of a search and replace); if this substitution is desired, either factor the expression first or attempt an extraction:
eq=2*(a+b) eq
2*a + 2*b
eq.extract_additively(a+b)
a + b
eq.extract_multiplicatively(a+b)
2
factor_terms(eq).subs(a+b, x)
2*x -- 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.