Comment #68 on issue 1695 by [email protected]: integral of a piecewise
function gives bad result
http://code.google.com/p/sympy/issues/detail?id=1695
The real bug is _eval_integral can only handle numbers:
In [33]: Piecewise((3*x,x<2), (0, True))._eval_interval(x,0, x)
Out[33]: 6
The real result is another Piecewise function
Piecewise((-(3/2)*x**2, x<0), (3/2*x**2, x< 2), (6, True))
but this can get ugly really quickly so it might take a bit to get a good
interface for it.
--
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.