Comment #25 on issue 2128 by asmeu...@gmail.com: Implement more general
piecewise integration algorithm
http://code.google.com/p/sympy/issues/detail?id=2128
Probably due to Tom's code, integration of functions with Heavisides in
them now works fine.
In [89]: integrate(Heaviside(2 - x), (x, 0, 1))
Out[89]: 1
And I think this is what was meant by the second example in comment 24:
In [90]: integrate(sign(y - 2)/2 + sign(2 - y)/2, (y, -1, 1))
Out[90]: 0
We can compute the exact antiderivative of sign(x) (it's just x*sign(x)),
so that integral is easy.
--
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.