weight(R,L)
i1 : R=rootSystemB(3) o1 = RootSystem{...8...} o1 : RootSystem
i2 : weight(R,{1,2,1}) o2 = | 1 | | 2 | | 1 | 3 o2 : ZZ
The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/WeylGroups.m2:2009:0.