Updates:
Status: Fixed
Comment #3 on issue 2725 by smi...@gmail.com: negated sub-expression match
in Add doesn't substitute
http://code.google.com/p/sympy/issues/detail?id=2725
The OP issue works in master; there was not support for an 'exact' flag in
subs at this time.
>>> (a+b+c).subs(-a-b,1)
c - 1
>>> ((x+1)**2).xreplace({x+2:y})
(x + 1)**2
--
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.