Wrong results. (Integral, Trigonometric function(sin, cos), Absolute value)

69 views
Skip to first unread message

M Kamimura

unread,
Oct 17, 2018, 5:59:54 AM10/17/18
to sympy
My calculation results are 14, but sympy's calculation results are 2 and 4.


Is it my mistake, or sympy's bug?

Oscar Benjamin

unread,
Oct 17, 2018, 8:35:26 AM10/17/18
to sympy
It's a bug:

In [4]: abs(sin(x)).integrate((x, 0, 8*pi))
Out[4]: 4

In [5]: abs(sin(x)).integrate((x, 0, 4*pi))
Out[5]: 4

In [6]: abs(sin(x)).integrate((x, 4*pi, 8*pi))
Out[6]: 0

--
Oscar

M Kamimura

unread,
Oct 17, 2018, 11:55:41 AM10/17/18
to sympy
Thank you.

I add a bug report into the issue.

2018年10月17日水曜日 21時35分26秒 UTC+9 Oscar:
Reply all
Reply to author
Forward
0 new messages