AbelianSemiGroupΒΆ
catdef.spad line 78 [edit on github]
the class of all additive (commutative) semigroups, i.e. a set with a commutative and associative operation +.
- *: (PositiveInteger, %) -> %
n*x
computes the left-multiplication ofx
by the positive integern
. This is equivalent to addingx
to itselfn
times.
- +: (%, %) -> %
x+y
computes the sum ofx
andy
.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- latex: % -> String
from SetCategory