Comment #11 on issue 2265 by [email protected]: cse requires subexpressions to be in the exact same order
http://code.google.com/p/sympy/issues/detail?id=2265

Let me know what you think about the mods, Andy... I don't do any canonical ordering of the replacements. (I'm not sure when that would be necessary.) So in one case x - y may come first and in another, y - x:

    h[2] >>> cse([(x-y), (y-x)*(x-y), z*(y-x)])
    ([(x0, x - y), (x1, y - x)], [x0, x0*x1, x1*z])

    h[3] >>> cse([a*(y-x), (x-y), (y-x)*(x-y), z*(y-x)])
    ([(x0, y - x), (x1, x - y)], [a*x0, x1, x0*x1, x0*z])


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