next | previous | forward | backward | up | top | index | toc | Macaulay2 website
GradedLieAlgebras :: degreeLength(LieAlgebra)

degreeLength(LieAlgebra) -- get the length of the weight of a generator

Synopsis

Description

Observe that the weights of the generators in a Lie algebra will have an extra component 0 if the option LastWeightHomological is false.

i1 : L=lieAlgebra{a,b}

o1 = L

o1 : LieAlgebra
i2 : M=lieAlgebra({a,b},Weights=>{{1,0},{2,1}},LastWeightHomological=>true)

o2 = M

o2 : LieAlgebra
i3 : degreeLength L

o3 = 2
i4 : weight\gens L

o4 = {{1, 0}, {1, 0}}

o4 : List
i5 : degreeLength M

o5 = 2

See also