Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 4 years ago

lijr07 gravatar image

How to convert an element in a Symmetric group to a one-line notation in Sage

Let Sn be the symmetric group over 1,2,,n. Let w=si1simSn, where si's are simple reflections. How to convert w to a one-line notation in Sage? The following are my codes.

W = WeylGroup("A7", prefix="s") [s1,s2,s3,s4,s5,s6,s7] = W.simple_reflections()

w=s2s4s6

I want to convert w to a one line nation. Thank you very much.

How to convert an element in a Symmetric group to a one-line notation in Sage

Let Sn be the symmetric group over 1,2,,n. Let w=si1simSn, where si's are simple reflections. How to convert w to a one-line notation in Sage? The following are my codes.

W = WeylGroup("A7", prefix="s")
[s1,s2,s3,s4,s5,s6,s7] = W.simple_reflections()

w=s2s4s6

W.simple_reflections() w=s2*s4*s6

I want to convert w to a one line nation. Thank you very much.