OrderedAbelianGroupΒΆ
catdef.spad line 911 [edit on github]
Ordered sets which are also abelian groups, such that the addition preserves the ordering.
- 0: %
from AbelianMonoid
- *: (Integer, %) -> %
from AbelianGroup
- *: (NonNegativeInteger, %) -> %
from AbelianMonoid
- *: (PositiveInteger, %) -> %
from AbelianSemiGroup
- +: (%, %) -> %
from AbelianSemiGroup
- -: % -> %
from AbelianGroup
- -: (%, %) -> %
from AbelianGroup
- <=: (%, %) -> Boolean
from PartialOrder
- <: (%, %) -> Boolean
from PartialOrder
- >=: (%, %) -> Boolean
from PartialOrder
- >: (%, %) -> Boolean
from PartialOrder
- abs: % -> %
abs(x)
returns the absolute value ofx
.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- latex: % -> String
from SetCategory
- max: (%, %) -> %
from OrderedSet
- min: (%, %) -> %
from OrderedSet
- negative?: % -> Boolean
negative?(x)
tests whetherx
is strictly less than 0.
- opposite?: (%, %) -> Boolean
from AbelianMonoid
- positive?: % -> Boolean
positive?(x)
tests whetherx
is strictly greater than 0.
- sample: %
from AbelianMonoid
- sign: % -> Integer
sign(x)
is 1 ifx
is positive,-1
ifx
is negative, 0 ifx
equals 0.
- smaller?: (%, %) -> Boolean
from Comparable
- subtractIfCan: (%, %) -> Union(%, failed)
- zero?: % -> Boolean
from AbelianMonoid