Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to list cosets

How can I get sage to list all left and right cosets; for example, all cosets of A4 in S4.

How to list cosets

How can I get sage to list all left and right cosets; for example, all cosets of A4 in S4.S4. From a sample worksheet, I tried evaluating the following, but only got a traceback:

G = SymmetricGroup(3)
a = G("(1,2)")
H = G.subgroup([a]) rc = G.RightCoset(H, side='right'); rc

Traceback (click to the left of this block for traceback) ... AttributeError: 'SymmetricGroup_with_category' object has no attribute 'RightCoset'

How to list cosets

How can I get sage to list all left and right cosets; for example, all cosets of A4 in S4. From a sample worksheet, I tried evaluating the following, but only got a traceback:

G = SymmetricGroup(3)
a = G("(1,2)")
H = G.subgroup([a]) G.subgroup([a])
rc = G.RightCoset(H, side='right'); rc

Traceback (click to the left of this block for traceback) ... AttributeError: 'SymmetricGroup_with_category' object has no attribute 'RightCoset'