-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
Do not require coefficient's __nonzero__ to be implemented for polynomial printing #23020
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to days86.5 |
New commits:
|
Commit: |
comment:4
I'm not sure if this is relevant, but in many Sage rings, |
comment:5
Thanks for pointing this out. I discussed this with nbruin and we think that regardless, printing of coefficients should be more robust with such exceptions; there is even a point in replacing |
Changed keywords from days86.5 to sd86.5 |
comment:8
Looks good to me. |
comment:9
Merge conflict |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: David Roe |
comment:11
Sorry. We do not get any conflicts with the latest beta. New commits:
New commits:
|
Currently, a polynomial prints all the coefficients that are non-zero.
This of course makes perfect sense but leads to issues when determining whether an element is zero or not is not possible or very hard as is the case with some of the elements introduced in #22956.
There, we essentially have the following situation:
This ticket changes the printing to print an element even if
__nonzero__
raises an error:CC: @nbruin
Component: commutative algebra
Keywords: sd86.5
Author: Julian Rüth
Branch/Commit:
0734fc5
Reviewer: David Roe
Issue created by migration from https://trac.sagemath.org/ticket/23020
The text was updated successfully, but these errors were encountered: