First time here? Check out the FAQ!

Ask Your Question
2

entering permutation as product of not necessarily disjoint cycles

asked 3 years ago

ykm gravatar image

updated 3 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 3 years ago

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)')
()
Preview: (hide)
link

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

Stats

Asked: 3 years ago

Seen: 247 times

Last updated: Sep 23 '21