Comment #17 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
I suppose that it is needed not only for the simplifications theme
(cancelations in particular), but rather for the expressions's hashe's
equality also. Is not it?
The concepts are one and the same. Cancelation is based on equality
testing, which is based on hashing (because it uses dictionary keys to do
it).
How you think about the case of '(x**n*y**m).subs(x*y, whatever)' (e.g. n
< m).
What must must be the correct result in this case?
Because we have
In [38]: (x*y)**2*y
Out[38]:
2 3
x ⋅y
I think we must have whatever**n*y**(m - n) (again, assuming the
assumptions on x, y, and n are such that (x*y)**n == x**n*y**n).
--
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.