Ask Your Question

entering permutation as product of not necessarily disjoint cycles

asked 2021-09-21 18:39:30 +0100

ykm gravatar image

updated 2021-09-23 15:00:48 +0100

slelievre gravatar image

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

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

but I get (1,2).

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-21 18:46:14 +0100

slelievre gravatar image

Here is one solution, suggested by the phrasing of the question itself.

Use a product of cycles, individually turning each cycle into a group element:

sage: G = SymmetricGroup(3)
sage: G('(1,2)') * G('(1,2)')
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-09-21 18:39:30 +0100

Seen: 144 times

Last updated: Sep 23 '21