On Wed, 17 Oct 2018 at 10:59, M Kamimura <kamimu...@gmail.com> wrote: > > My calculation results are 14, but sympy's calculation results are 2 and 4. > > https://www.mkamimura.com/2018/10/python-javascript_17.html > > Is it my mistake, or sympy's bug?
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 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxTrbyb4L3gMzLy8btdghoS4ALMAkoENKw1arpT7EubM9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.