-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
is_squarefree() incorrect over imperfect fields #12404
Comments
comment:1
The method As a quick workaround one can do:
|
comment:2
Replying to @saraedum:
This would be "is_not_squarefree()" of course. |
comment:3
see also #12198. Paul |
comment:4
see also #12129. Paul |
comment:5
Thanks for pointing these out. Since both are in the multivariate case, I don't think they're related. |
comment:6
The attached patch should fix the problem. |
Author: Julian Rueth |
Changed keywords from none to sd40.5 |
Work Issues: coherence with squarefree_decomposition, fix error |
comment:9
the documentation of
Sage should be coherent in that matter. Personally I prefer not to decompose the coefficient content. Moreover the following produces an error:
Paul |
Reviewer: Paul Zimmermann |
comment:10
Replying to @zimmermann6:
That is true. I also noted this inconsistency. To not break existing code, I'd rather add a warning section in the docstring. Generally I agree that having Would you be ok with just adding a warning and an example showing this problem?
This should not happen when applying the dependency #12988. |
comment:12
I added a patch with such a warning. I still have to check how it renders in the docs. |
comment:13
I made a few docstring changes in the latest patch. |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_12404.patch.gz distinguish characteristic zero and nonzero |
comment:14
Btw. I will add the respective warning for |
comment:15
Julian, there is a typo in Would it break a lot of code if Paul |
Attachment: trac_12404_warning.patch.gz warning about inconsistency with squarefree_decomposition |
comment:16
Thanks, the typo should be fixed now. No I haven't tried. I was actually thinking about external code using that method. If you insist we can change it. I don't have a very strong opinion about this. I just believe that inconsistency isn't bad as long as it's documented. IMHO breaking the interface is worse than documented inconsistency. |
comment:17
Replying to @zimmermann6:
Did you mean "if |
Attachment: 12404_examples.patch.gz |
comment:19
Positive review to the first two patches. Anybody else can review my patch? |
This comment has been minimized.
This comment has been minimized.
Changed reviewer from Paul Zimmermann to Paul Zimmermann, Jeroen Demeyer |
comment:20
jdmeyer -- I positively review your patch. |
Changed upstream from Not yet reported upstream; Will do shortly. to none |
Changed work issues from coherence with squarefree_decomposition, fix error to none |
Merged: sage-5.1.beta3 |
The method
is_squarefree()
is incorrect for polynomials over function fields over finite fields:Apply:
to the sage library.
Depends on #9054
Depends on #13043
Depends on #12988
Depends on #10902
CC: @sagetrac-sydahmad
Component: commutative algebra
Keywords: sd40.5
Author: Julian Rueth
Reviewer: Paul Zimmermann, Jeroen Demeyer
Merged: sage-5.1.beta3
Issue created by migration from https://trac.sagemath.org/ticket/12404
The text was updated successfully, but these errors were encountered: