spire.algebra
A RingAlgebra is a module that is also a Rng. An example is the Gaussian numbers.
RingAlgebra
Rng
Returns a multiplied with itself n times.
a
n
Returns a multiplied with itself n times. For instance, a pow 3 === a * a * a. Since this is a semiring, there is no notion of a multiplicative identity, and so the exponent must be positive.
a pow 3 === a * a * a
A
RingAlgebra
is a module that is also aRng
. An example is the Gaussian numbers.