Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

entering permutation as product of not necessarily disjoint cycles

I was expecting to get the identity when I did the following:

G=SymmetricGroup(3)

G('(1,2)(1,2)')

but I get (1,2). How to tell Sage to compute a product of not necessarily disjoint cycles?

click to hide/show revision 2
retagged

entering permutation as product of not necessarily disjoint cycles

I was expecting to get the identity when I did the following:

G=SymmetricGroup(3)

G('(1,2)(1,2)')

but I get (1,2). How to tell Sage to compute a product of not necessarily disjoint cycles?

entering permutation as product of not necessarily disjoint cycles

I was expecting to get the identity when I did the following:

G=SymmetricGroup(3)

G('(1,2)(1,2)')

sage: G = SymmetricGroup(3)
sage: G('(1,2)(1,2)')

but I get (1,2). (1,2).

How to tell Sage to compute a product of not necessarily disjoint cycles?