k = weylLength(A, w)k = weylLength uEquivalently, the number of positive roots sent to negative roots by the element; or the length of any reduced word. The argument w need not itself be reduced. The one-argument form takes a WeylElement and returns its Coxeter length.
|
|
|
The outputs $3$ and $0$ distinguish a reduced expression for the longest element of $A_2$ from the identity. Although the second input has six letters, its Weyl-group element has Coxeter length $0$.
The length of $w_0$ equals the number of positive roots. For the classical types this reproduces the familiar formulas $|\Phi^+(A_{n-1})| = \binom{n}{2}$, $|\Phi^+(B_n)| = |\Phi^+(C_n)| = n^2$, $|\Phi^+(D_n)| = n(n-1)$:
|
|
|
The object weylLength 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:7909:0.