G.irreducible_characters() is a list of lists, not a list of tuples, so one cannot just take set() of them.
On Feb 2, 10:01 pm, YannLC <yannlaiglecha...@gmail.com> wrote: > Maybe just using sets: > > sage: G = GL(2,3) > sage: k.<zeta8> = CyclotomicField(8) > sage: expected = set([(3, 0, 3, 0, -1, 1, 1, -1), (1, 1, 1, 1, 1, 1, > 1, 1), (1, 1, 1, 1, 1, -1, -1, -1), (2, -1, 2, -1, 2, 0, 0, 0), (4, > -1, -4, 1, 0, 0, 0, 0), (2, 1, -2, -1, 0, zeta8^3 + zeta8, -zeta8^3 - > zeta8, 0), (2, 1, -2, -1, 0, -zeta8^3 - zeta8, zeta8^3 + zeta8, 0), > (3, 0, 3, 0, -1, -1, -1, 1)]) > sage: set([tuple(x.values()) for x in G.irreducible_characters()]) == > expected > True > > On Feb 2, 2:25 pm, Dima Pasechnik <dimp...@gmail.com> wrote: > > > > > On Feb 2, 8:54 pm, YannLC <yannlaiglecha...@gmail.com> wrote: > > Unfortunately for irreducible characters (see groups/ > > class_function.py patch) > > reduce seems to be the only way so far :-( -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org