On Feb 2, 2010, at 6:50 AM, Dima Pasechnik wrote:

G.irreducible_characters() is a list of lists, not a list of tuples,
so one cannot just take set() of them.

On another note, for both this and word problem, you might want to consider whether a list of tuples would be better to return than a list of lists... do they need to be mutable?

- Robert


On Feb 2, 10:01 pm, YannLC <[email protected]> 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 <[email protected]> wrote:



On Feb 2, 8:54 pm, YannLC <[email protected]> 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 [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to