w = weylElement(W,word)A Cartan matrix, Cartan datum, realization, root datum, or finite type name may be supplied instead of a Weyl group. Finite, affine, and indefinite types are allowed. In $s_{i_1}\cdots s_{i_k}$ the rightmost reflection acts first. The word is reduced automatically, and the empty list represents the identity. Node arguments are positions numbered starting at 1, chosen node labels, or position-label tables. An integer between 1 and the number of nodes always means a position. Coordinate tuples follow the matrix order, so the conventional affine node 0 occupies position 1 in the canonical affine matrices.
|
|
|
The two adjacent $s_1$ factors cancel, so the output represents $s_1s_2$ with reduced word $(1,2)$ and length 2. This is a group element, not a formal list that treats different expressions as different elements.
The object weylElement is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:13797:0.