-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
DirichletGroup(1).list() returns the zero character #14368
Comments
comment:1
I don't get this in Sage 5.7 or Sage 5.9.beta1. What is your platform, what version of Sage are you using, etc? Can you reproduce it from a new session, or does it only happen after other definitions perhaps do something weird? That said, this would definitely be a bug! |
comment:2
I actually forgot to check reproducibility. I guess it was just a fluke. I will recompile everything (including sage) and see if I still have the problem. Otherwise I should probably just close the ticket. |
comment:3
Well, I think that it's conceivable that there is a psage interaction, that's true. So let's not close this until we know the precise reason it happened. |
comment:4
Hmm, I was apparently a bit stressed or something yesterday. sage: DirichletGroup(1).list()[0].values() [0] sage: |
comment:5
Yes, I can confirm this on a Mac 10.7. But it gets weirder (here on boxen):
There is something wrong with caching, perhaps. One order causes the problem, the other doesn't. |
Changed keywords from dirichlet characters to dirichlet characters, sd51 |
comment:7
The new file patch1d.patch should fix the problem with wrong character when using DirichletGroup(1) command. |
comment:9
The patch needs to include a doctest to show that it's fixed, to prevent the bug occurring again. |
Work Issues: doctest |
Author: Bartosz Naskrecki |
This comment has been minimized.
This comment has been minimized.
Reviewer: David Loeffler |
comment:14
The patch should be rebased to sage-5.12.beta1 such that it applies without fuzz:
|
Changed work issues from doctest to none |
Rebased to 5.12.beta1 |
comment:16
Attachment: trac_14368-rebased.patch.gz I rebased the patch. The fuzz was of the most trivial possible kind (changes in the whitespace on empty lines). Apply trac_14368-rebased.patch |
Merged: sage-5.12.beta4 |
The Dirichlet group of modulus 1 should consist of the trivial character.
Something in the .list() generator seems to be broken in this case and it returns a character which takes the value 0 instead of 1.
However, note that list(D) works as expected and allegedly list(D)[0] is equal to D.list()[0].
Component: number theory
Keywords: dirichlet characters, sd51
Author: Bartosz Naskrecki
Reviewer: David Loeffler
Merged: sage-5.12.beta4
Issue created by migration from https://trac.sagemath.org/ticket/14368
The text was updated successfully, but these errors were encountered: