MagmaΒΆ
naalgc.spad line 1 [edit on github]
Magma is the class of all multiplicative magmas, i.e. sets with a binary operation.
- *: (%, %) -> %
a*b
is the product ofa
andb
in a set with a binary operation.
- ^: (%, PositiveInteger) -> %
a^n
returns 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) * a
andrightPower(a, 1) := a
.