New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate(sqrt(-x**2 + 1)*(-x**2 + x), [x, -1, 1]) is incorrect #14782

Closed
ethankward opened this Issue Jun 7, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@ethankward
Copy link
Contributor

ethankward commented Jun 7, 2018

>>> from sympy import *
>>> x = Symbol('x')
>>> integrate(sqrt(-x**2 + 1)*(-x**2 + x), [x, -1, 1])
0
>>> 

The answer should be -pi/8.

The integral from 0 to 1 is also incorrect and returns a weird empty Piecewise object:

>>> integrate(sqrt(-x**2 + 1)*(-x**2 + x), [x, 0, 1])
-Piecewise() + 1/3

skirpichev added a commit to skirpichev/diofant that referenced this issue Jun 11, 2018

skirpichev added a commit to skirpichev/diofant that referenced this issue Jun 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment