Here X[0] isn't the list [1, 1]. It's a Dirichlet character that takes
the values [1,1] on the generators of the multiplicative group mod 6.
So it doesn't compare as equal to the list of integers [1, 1] and
there are many good reasons why it shouldn't.

Perhaps what you are looking for is

sage: G = DirichletGroup(6)
sage: chi = G.list()[0]
sage: chi == G([1,1])
True
sage: list(chi.values_on_gens()) == [1, 1]
True

(Note that current versions of Sage insist on returning 2 generators
for the that the group of units mod 6, one of which is 1 (!). This
behaviour will change in the upcoming 4.0 release.)

David




On May 27, 9:28 pm, rje <[email protected]> wrote:
> sage: X=DirichletGroup(6).list();
> sage: X[0]
> [1, 1]
> sage: X[0]<>[1, 1]
> True
> ----------------------------------------------
> Why is this True, and what's the corrected syntax?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to