Skip to content
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

Fix sorting in RootOf.real_roots() #1117

Merged
merged 3 commits into from Feb 6, 2021

Conversation

skirpichev
Copy link
Collaborator

No description provided.

Porting of PRS algorithm was done by diofant#994.

Closes sympy/sympy#20874
In the triggered by solve_poly_inequality() example, the problem
polynomial is something like (x + 1)**3*(3*x + 1).  In this case, for
distinct roots, we have isolating intervals like r1=[-1, -1] (this root is
from the ground domain, ZZ) and r2=[-1, 0] (for x=-1/3).  Second root is not
going to be improved by sorting helper, since r1.b==r2.a.

Closes sympy/sympy#20902
@skirpichev skirpichev added this to the 0.13 milestone Feb 6, 2021
@skirpichev skirpichev marked this pull request as ready for review February 6, 2021 06:17
@skirpichev skirpichev merged commit 75994c4 into diofant:master Feb 6, 2021
@skirpichev skirpichev deleted the fix-reals-sorting branch February 6, 2021 08:17
@skirpichev skirpichev mentioned this pull request Feb 6, 2021
@skirpichev skirpichev added the wrong answer if mathematically wrong result was obtained label Feb 6, 2021
@diofant diofant deleted a comment from github-actions bot Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation maintainability polys wrong answer if mathematically wrong result was obtained
Development

Successfully merging this pull request may close these issues.

None yet

1 participant