Comment #4 on issue 2552 by [email protected]: (1/(x*y)).subs(x*y, whatever) doesn't work
http://code.google.com/p/sympy/issues/detail?id=2552

A step forward on this might be to change as_base_exp so that a Mul of bases to the same Integer exponent (which automatically gets separated at instantiation) would come back as a Mul base to that Integer,

not

    >>> 1/x/y
    1/(x*y)
    >>> _.as_base_exp()
    (1/(x*y), 1)

but
    (x*y, -1)

This wouldn't solve a problem like a replacement of `x*y` in `1/x**2/y**3` but that is a case where I really don't like the automatic algebraic logic of the current subs anyway as I've noted in other issues.

It looks like I had the last crack at Mul's _eval_subs. Does somebody else want to try the next round?

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