#14368: DirichletGroup(1).list() returns the zero character
-----------------------------+----------------------------------------------
Reporter: fstromberg | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-5.9
Component: number theory | Keywords: dirichlet characters
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------------------------
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].
sage: D=DirichletGroup(1)[[BR]]
sage: D.list()[0](1)[[BR]]
0[[BR]]
sage: list(D)[0](1)[[BR]]
1[[BR]]
sage: D.list()[0]==list(D)[0][[BR]]
True
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14368>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.