Creation of Free Algebras and Elements#

Creation of Free Algebras#

Currently algebras may only be created over fields. Free algebras are objects of type AlgFr with elements of type AlgFrElt.

FreeAlgebra(K, n): Fld, RngIntElt -> AlgFr#

Create a free algebra in \(n>0\) variables over the field \(K\). The angle bracket notation can be used to assign names to the indeterminates; e.g., F<a,b,c> := FreeAlgebra(GF(2), 3);.

ExteriorAlgebra(K, n): Fld, RngIntElt -> AlgExt#

Create an exterior algebra in \(n>0\) variables over the field \(K\). The angle bracket notation can be used to assign names to the indeterminates; The angle bracket notation can be used to assign names to the indeterminates; e.g., F<a,b,c> := ExteriorAlgebra(GF(2), 3);.

Creation of Polynomials#

The easiest way to create (noncommutative) polynomials in a given algebra is to use the angle bracket construction to attach variables to the indeterminates, and then to use these variables to create polynomials (see the examples). Below we list other options.

F . i: AlgFr, RngInt -> AlgFrElt#

Return the \(i\)-th indeterminate for the free algebra \(F\) in \(n\) variables (\(1\leq i\leq n\)) as an element of \(F\).

elt< R | a >: AlgFr, RngElt -> AlgFrElt#
R ! s: AlgFr, RngElt -> AlgFrElt#
R ! s: AlgFr, [ RngElt ] -> AlgFrElt#
elt< R | s >: AlgFr, [ RngElt ] -> AlgFrElt#

This element constructor can only be used for trivial purposes in noncommutative free algebras: given a free algebra \(F=R[x_1, \ldots, x_{n}]\) and an element \(a\) that can be coerced into the coefficient ring \(R\), the constant polynomial \(a\) is returned; if \(a\) is in \(F\) already it will be returned unchanged.

One(F): AlgFr -> AlgFrElt#
Identity(F): AlgFr -> AlgFrElt#
Zero(F): AlgFr -> AlgFrElt#
Representative(F): AlgFr -> AlgFrElt#