#14368: DirichletGroup(1).list() returns the zero character
----------------------------------------------+----------------------------
Reporter: fstromberg | Owner: was
Type: defect | Status:
Priority: major | needs_review
Component: number theory | Milestone: sage-5.11
Keywords: dirichlet characters, sd51 | Resolution:
Authors: Bartosz Naskrecki | Merged in:
Report Upstream: N/A | Reviewers:
Branch: | Work issues: doctest
Stopgaps: | Dependencies:
----------------------------------------------+----------------------------
Description changed by davidloeffler:
Old description:
> 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
New description:
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].
{{{
#!python
sage: D=DirichletGroup(1)
sage: D.list()[0](1)
0
sage: list(D)[0](1)
1
sage: D.list()[0]==list(D)[0]
True
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/14368#comment:11>
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.
For more options, visit https://groups.google.com/groups/opt_out.