Comment #6 on issue 1428 by asmeu...@gmail.com: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]
http://code.google.com/p/sympy/issues/detail?id=1428

But the issue is that sin(pi*m) is reduced to 0 automatically. It would require a bit of cleverness on the part of the integrator to return the true answer, which is something in terms of Delta(k - m). As far as I know, only the meijerg algorithm is smart enough to split things into cases like this, and it doesn't seem to be able to handle this integral.

With a some work, the Risch algorithm could do this, because it can notice explicitly when the assumption that k - m != 0 is made. But that's a long way off. For one thing, trig functions are not even implemented yet, but even things like exp((k - m)*x**2) (i.e., determining if that is elementary reduces to determining if k - m = 0) would require a good bit of refactoring in the code to split off the cases.

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