Operations on Elements of an Algebra
Operations on Elements
- a + b: AlgGenElt, AlgGenElt -> AlgGenElt
The sum of the elements \(a\) and \(b\) of an algebra \(A\).
- a - b: AlgGenElt, AlgGenElt -> AlgGenElt
The difference of the elements \(a\) and \(b\) of an algebra \(A\).
- a * b: AlgGenElt, AlgGenElt -> AlgGenElt
The product of the elements \(a\) and \(b\) of an algebra \(A\).
- a * r: AlgGenElt, RngElt -> AlgGenElt
- r * a: RngElt, AlgGenElt -> AlgGenElt
The product of the element \(a\) of the algebra \(A\) and the ring element \(r \in R\), where \(R\) is the coefficient ring of \(A\).
- a / r: AlgGenElt, RngElt -> AlgGenElt
The product of the element \(a\) of the \(R\)-algebra \(A\) and the ring element \(1 / r \in R\), where \(R\) is a field.
- a ^ n: AlgGenElt, RngIntElt -> AlgGenElt
If \(n\) is positive, form the (left-normed) \(n\)-th power \((( \ldots ((a*a)*a) \ldots )*a)\) of \(a\); if the parent algebra \(A\) of \(a\) has an identity and \(n\) is zero, return the identity; if \(n < 0\) and \(a\) has an inverse \(a^{-1}\) in \(A\), form the \(n\)-th power of \(a^{-1}\).
Comparisons and Membership
- a eq b: AlgGenElt, AlgGenElt -> BoolElt
Returns
trueif the elements \(a\) and \(b\) of an algebra \(A\) are equal; otherwisefalse.
- a ne b: AlgGenElt, AlgGenElt -> BoolElt
Returns
trueif the elements \(a\) and \(b\) of an algebra \(A\) are not equal; otherwisefalse.
Predicates on Elements
- IsOne(a): AlgGenElt -> BoolElt
Returns
trueif the algebra element \(a\) is the identity; otherwisefalse.
- IsMinusOne(a): AlgGenElt -> BoolElt
Returns
trueif the algebra element \(a\) is the negative of the identity element; otherwisefalse.
- IsUnit(a): AlgGenElt -> BoolElt, AlgGenElt
Returns
trueif the element \(a\) is a unit, plus the inverse; otherwisefalse.
- IsRegular(a): AlgGenElt -> BoolElt
Returns
trueif the element \(a\) is regular, that is, is not a zero divisor; otherwisefalse.
- IsZeroDivisor(a): AlgGenElt -> BoolElt
Returns
trueif the algebra element \(a\) is a divisor of zero; otherwisefalse.