MagmaΒΆ
naalgc.spad line 1 [edit on github]
Magma is the class of all multiplicative magmas, i.e. sets with a binary operation.
- *: (%, %) -> %
 a*bis the product ofaandbin a set with a binary operation.
- ^: (%, PositiveInteger) -> %
 a^nreturns then-th power ofa, defined by repeated squaring.
- coerce: % -> OutputForm
 from CoercibleTo OutputForm
- latex: % -> String
 from SetCategory
- leftPower: (%, PositiveInteger) -> %
 leftPower(a, n)returns then-th left power ofa, i.e.leftPower(a, n) := a * leftPower(a, n-1)andleftPower(a, 1) := a.
- rightPower: (%, PositiveInteger) -> %
 rightPower(a, n)returns then-th right power ofa, i.e.rightPower(a, n) := rightPower(a, n-1) * aandrightPower(a, 1) := a.