WLJS LogoWLJS Notebook

GroupElementToWord

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

Examples

Decompose a permutation into generators:

GroupElementToWord[SymmetricGroup[3], Cycles[{{1, 2, 3}}]]
(* {1, 2} *)

Please visit the official Wolfram Language Reference for more details.

On this page