Updates:
        Labels: NeedsReview smichr

Comment #1 on issue 1399 by [email protected]: make cse recognize negative of a subexpression
http://code.google.com/p/sympy/issues/detail?id=1399

This is working. In testing `a/(x-y) + b/(y-x)` found that it started working with

commit b3ac58cd057e155fa91fe241ee95f0368e700bf9
Author: Mateusz Paprocki <[email protected]>
Date:   Wed Jun 15 01:37:44 2011 +0200

    Made Add._eval_subs() more smart about minus signs

    Now this is possible:

    In [1]: ((-x - 1)*y).subs(x + 1, t)
    Out[1]: -t⋅y

    (previously returned expression unchanged).

I added this simple test to https://github.com/sympy/sympy/pull/875 . (The OP expression also works.)

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