sympy/sympy.github.com

Integration is wrong

Closed this issue · 5 comments

Hello!

Recently I've found that interation of function f = (sqrt(1 + x * sin(x)) - 1) / (exp(x ** 2) - 1) on (0, 1) results in -pi/2 but the correct answer is pi/2. This function is positive on that interval.

Also I can see that sympy.plotting.plot(sympy.diff(sympy.integrate(f))) and sympy.plotting.plot(f) visually differ by a sign.

Wolfram Alpha: https://www.wolframalpha.com/input/?i=integrate+1+%2F+%28%282+-+x%29+*+sqrt%281+-+x%29%29+from+0+to+1

SymPy version: 1.7.1


Screenshot from 2021-03-13 22-02-20

good morning sir ,I can solve this problem can u assign me this problem ??

Just need to change the value 0 in place of 1 and 1 in place of 0

This issue should be opened on the sympy repo. This repo is for the website.