Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium WrongResult
New issue 2937 by [email protected]: Integrate Piecewise fails with
symbolic bounds
http://code.google.com/p/sympy/issues/detail?id=2937
Integrating piecewise functions with symbolic bounds produces incorrect
results.
p = Piecewise( (0, x<0), (x, x<=1), (1, True))
⎧0 for x₂ < 0
⎪
⎨x₂ for x₂ ≤ 1
⎪
⎩1 otherwise
# This works well
In [45]: integrate(p, (x,-5,1))
Out[45]: 1/2
# This does not
In [49]: integrate(p, (x,-5,z))
Out[49]: z - 1/2
For example, consider substituting in z=-5.
--
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.