Question: Use of add or sum commands with the LieAlgebras package


The evalDG command included in the LieAlgebras via the DifferentialGeometry package allows summations such as evalDG(e1+e2) where e1 and e2 are two generators of a given Lie algebra.

Now, let L be a list of such summations, e.g.,

L= [e1+a*e3,2*e2+b*e4,e1+3*e5]

where a and b are symbols for variable names in the real domain.
Then, while the code


works fine (n be a given integer), the code


does not, and an error message results due to an "invalid subscript selector".

What is the right code to realize this summation?



Please Wait...