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
Discriminant of multivariate polynomial over RR or RDF gives an error #29396
Comments
Branch: public/29396 |
comment:2
This one-line patch to
New commits:
|
Author: Dave Morris |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
I now understand the code well enough to be confident that the patch will not have any bad side-effects. But I discovered that exactly the same bug is in another part of the code, so I patched that too (and added another doctest). |
comment:5
Here is an example to show the effect of the latest patch. Before the patch, the bug can cause incorrect results:
We get the correct result after applying the patch:
|
Reviewer: Michael Orlitzky |
comment:6
This pattern already appears in the code once,
so it can't be too far off the mark. You could use "not in" instead of "not( .. in .. )", but that's just a matter of taste. Otherwise, it looks reasonable and fixes the problem. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:8
Thanks for the review and the suggestion. (I am not fluent in python.) I believe "not in" is much better, so I made the change. |
comment:9
No problem, thanks for the fix! |
Changed branch from public/29396 to |
Inspired by Ask SageMath question #50317:
results in an error. Traceback:
By contrast, the discriminant of the same polynomial over
RIF
orRBF
orCC
orCDF
works fine.Component: number theory
Keywords: discriminant, multivariate, RR, RDF
Author: Dave Morris
Branch/Commit:
fcd0354
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/29396
The text was updated successfully, but these errors were encountered: