-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
characteristic() should be an integer #12988
Comments
comment:1
I believe it is easiest to check that this is correct through the test framework of the categories. I added a test to Rings and also one to Fields() checking that it's a prime or zero. |
Changed keywords from ZZ, characteristic to ZZ characteristic sd40.5 |
Author: Julian Rueth |
comment:4
That's strange. I'll run the doctests again to see if this also happens here. Actually |
Dependencies: #13043 |
Attachment: trac_12988.patch.gz move characteristic() to the category of rings and check that it is in ZZ |
comment:7
This looks good to me. |
Reviewer: David Roe |
comment:9
3 doctest failures with sage-5.1.beta1:
|
Attachment: trac_12988_padic.patch.gz fix characteristic for padics |
Changed reviewer from David Roe to David Roe, Jeroen Demeyer |
Merged: sage-5.1.beta2 |
Currently
characteristic()
does not return anInteger
for some rings:This is annoying because one cannot for example do:
I don't see a good reason not to make characteristic always an Integer. The minimal performance loss should not be an issue in any computation that I can imagine.
Depends on #13043
Component: algebra
Keywords: ZZ characteristic sd40.5
Author: Julian Rueth
Reviewer: David Roe, Jeroen Demeyer
Merged: sage-5.1.beta2
Issue created by migration from https://trac.sagemath.org/ticket/12988
The text was updated successfully, but these errors were encountered: