Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2292 by ksiondag...@gmail.com: Add functionality to Integrals to
switch limit order?
http://code.google.com/p/sympy/issues/detail?id=2292
This is just something I remember doing back in basic calc classes:
Integral(f(x), (x, 0, y), (y, 0, 1) ) is the same thing as
Integral(f(x), (y, x, 1), (x, 0, 1) )
which integrates into Integral((1-x)*f(x), (x, 0, 1))
Currently:
In [ ]: integrate(f(x), (x, 0, y), (y, 0, 1))
Out[ ]: Integral(f(x), (x, 0, y), (y, 0, 1))
In [ ]: integrate(f(x), (y, x, 1), (x, 0, 1))
Out[ ]: Integral((1 - x)*f(x), (x, 0, 1))
So, basically we could add a method that takes new limit order as input (or
something)
and recalculates the limits of each variable as necessary.
Though, sometimes re-evaluating limits is kind of ugly. For something like
Integral(f(x), (x,y, y+1), (y, 0, 2))
to be switched around it takes
Integral(f(x), (y, 0, x), (x, 0, 1)) + Integral(f(x), (y, x-1, x), (x,1,
2)) + Integral(f(x), (y, x-1, 2), (x, 2, 3))
because the equations defining the limits of integration change
depending on the value of x.
Is this an enhancement worth implementing?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.