q = pairing(x,h)If $x=\sum_j a_j\alpha_j$ and $h=\sum_i b_i\alpha_i^\vee$, the value is $b^{\mathsf T}Aa$. For a weight and coroot it is the scalar product of Dynkin labels with coroot coefficients; for a root and coweight it uses simple-root evaluations. Pairing a weight with a coweight requires their complete realization vectors.
|
|
The output $(-1,1)$ means $\langle\alpha_1,\alpha_2^\vee\rangle=-1$ and $\langle\omega_1,\alpha_1^\vee\rangle=1$. The two inputs with coordinates $(1,0)$ are a root and a weight, so their pairings differ.
The object pairing 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:13494:0.