Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2009-05-21 Thread codesite-noreply
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2012-10-28 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2012-10-28 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2012-10-28 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2012-10-28 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2012-10-28 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2013-02-19 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2013-05-13 Thread sympy
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

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2010-06-02 Thread sympy
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