Comment #20 on issue 2571 by [email protected]: Regression in Integral.subs
http://code.google.com/p/sympy/issues/detail?id=2571
I guess I would expect that to give Integral(y, (y, y**2)).
I get that the user might expect it to do something smart with a change of
variables (e.g., with Integral(x**2, x).subs(x**2, y), you might expect
Integral(sqrt(y)/2, y)). But I don't think it's the job of subs to do
this, but rather some method of Integral.
I guess I see your point elsewise too. What should that give? Should it
try to replace x with sqrt(y), which would cause it to fail? Should it
allow changes in the integration variable only if they are of the form
Symbol -> Symbol? I do think that it's necessary to be able to do
substitutions on the integrand and on the limits, and it seems that we
ought to be able to do them with full subs, not just the limited xreplace.
--
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.