next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
GradedLieAlgebras :: monomialsLie

monomialsLie -- computes the monomials of a LieElement

Synopsis

Description

A LieElement has a normal form, which is a linear combination of basis elements in a Lie algebra L in a certain order, monomialsLie gives the list of basis elements in this representation. If the LieElement has been obtained using the "formal" operators, then monomialsLie gives all the iterated Lie products used in the expression.

i1 : L = lieAlgebra({a,b,c})

o1 = L

o1 : LieAlgebra
i2 : x = a b c - 3 c b a +(1/3) b a c

o2 =  - (4/3)(b c a) - 2 (c b a)

o2 : L
i3 : monomialsLie x

o3 = {(b c a), (c b a)}

o3 : List
i4 : coeffsLie x

        4
o4 = {- -, -2}
        3

o4 : List
i5 : y = a@b@c/3@c@b@a++(1/3)@b@a@c

o5 = (a b c) - 3 (c b a) + (1/3)(b a c)

o5 : L
i6 : monomialsLie y

o6 = {(a b c), (c b a), (b a c)}

o6 : List
i7 : coeffsLie y

             1
o7 = {1, -3, -}
             3

o7 : List

See also

Ways to use monomialsLie :