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:

Click for copyable input

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

Click for copyable input

Reconstruct the permutation from the word:

Click for copyable input
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »