Macaulay2 » Documentation
Packages » GradedLieAlgebras :: LieElement - LieElement
next | previous | forward | backward | up | index | toc

# LieElement - LieElement -- subtraction of Lie elements

- Operator: -
- Usage:
    `u=x - y`
- Inputs:
  - x, an instance of the type LieElement, $x$ is of type $L$, where $L$ is of type LieAlgebra
  - y, an instance of the type LieElement, $y$ is of type $L$
- Outputs:
  - u, an instance of the type LieElement, $u$ is of type $L$, the difference of $x$ and $y$

## Description

The symbol - is used as infix notation for the Lie subtraction. The elements $x$ and $y$ must hade the same weight and sign.

    i1 : L = lieAlgebra{a,b}

    o1 = L

    o1 : LieAlgebra

    i2 : b b b a - a a a b

    o2 = (a a b a) + (b b b a)

    o2 : L

## Ways to use this method:

- LieElement - LieElement -- subtraction of Lie elements

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/GradedLieAlgebras/doc.m2:1953:0.