Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 2725 by [email protected]: negated sub-expression match in Add doesn't substitute
http://code.google.com/p/sympy/issues/detail?id=2725

Previously, the following didn't change. Along with the other changes of https://github.com/sympy/sympy/pull/234 this now works as shown below.

    >>> (a+b+c).subs(-a-b,1)
    c - 1

It also allows for a rudimentary implementation of 'exact' matching:

    >>> ((x+1)**2).subs(x+2,y,exact=True)
    (x + 1)**2
    >>> ((x+1)**2).subs(x+2,y)
    (y - 1)**2

I believe I have addressed the concerns that were raised about this pull request and would like to not have to rebase it again. Can I get some review help on this?



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