GroupElementToWord

GroupElementToWord[group, g]
decomposes the group element g as a product of generators of group.

Details and OptionsDetails and Options

  • The group element g must belong to the given group.
  • GroupElementToWord[group, g] gives the word of g in the form of a list of nonzero integers representing generators in the list returned by GroupGenerators[group]. A positive integer in the word represents the ^(th) generator, and a negative integer represents the inverse of the ^(th) generator.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Take a permutation g in a group G:

In[1]:=
Click for copyable input

Decompose g as a product of generators of G (negative integers represent inverse generators):

In[2]:=
Click for copyable input
Out[2]=

Reconstruct the permutation from the word:

In[3]:=
Click for copyable input
Out[3]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »