Comment #73 on issue 1695 by asmeurer: integral of a piecewise function gives bad result
http://code.google.com/p/sympy/issues/detail?id=1695

I see. Having the same symbol in the limits as the symbol of integration is confusing, and can lead to bugs, but I think we can support it if we do it right (see issue 1992).

Maple gives:

integrate(piecewise(x<2, 3*x, 0), x=0..x);
                              / 3  2
                              | - x       x <= 2
                             <  2
                              |
                              \  6        2 < x

and if you replace the x in the limits with X, it gives the same thing in X (so you know that it isn't being confused). The fact that the resulting conditions in the piecewise are different indicates that Maple has used the algorithm from issue 2128.

SymPy has a much more intuitive syntax for piecewise functions than Maple, btw.

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

Reply via email to