Status: Accepted
Owner: jochen.voss
Labels: Type-Defect Priority-Medium WrongResult Integration
New issue 1428 by jochen.voss: wrong result for integral of
sin(k*x)*sin(m*x) over [0,pi]
http://code.google.com/p/sympy/issues/detail?id=1428
Hi,
current sympy (from git) returns a wrong result fo
Comment #3 on issue 1428 by xoed...@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
I cannot reproduce your results, asmeurer. The
expression`integrate(sin(k*x)*sin(m*x),(x,0,pi))` does not yield the
correct answer
Comment #4 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
Maybe m and k should not be assumed to be integers?
--
You received this message because you are subscribed to the Google Groups
"s
Comment #5 on issue 1428 by xoed...@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
Such a requirement (m and k being integers) is pretty standard when doing
Fourier decomposition. The integral in question (or a form
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
Comment #7 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
Actually, this particular integral is just produced by the trigintegrate
table lookup, I believe. So this might be doable, if that
Updates:
Status: Started
Owner: julien.r...@gmail.com
Labels: NeedsReview
Comment #8 on issue 1428 by julien.r...@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
https://github.com/sympy/sympy/p
Updates:
Status: Fixed
Labels: -NeedsReview
Comment #9 on issue 1428 by julien.r...@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
(No comment was entered for this change.)
--
You received this messag
Comment #1 on issue 1428 by asmeurer: wrong result for integral of
sin(k*x)*sin(m*x) over [0,pi]
http://code.google.com/p/sympy/issues/detail?id=1428
It works correctly now:
In [26]: integrate(sin(k*x)*sin(m*x),(x,0,pi))
Out[26]:
k⋅cos(π⋅k)⋅sin(π⋅m)
───
22
m