AInterval RΒΆ

ainterval.spad line 194 [edit on github]

AInterval(R) implements arithmetic with intervals.

0: % if R has OrderedAbelianMonoid or R has SemiRng and % has AbelianMonoid and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from AIntervalCategory R

1: % if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

*: (%, %) -> % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from AIntervalCategory R

*: (Integer, %) -> % if R has SemiRng and % has AbelianGroup and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid and % has AbelianGroup or R has OrderedAbelianGroup

from AIntervalCategory R

*: (NonNegativeInteger, %) -> % if R has SemiRing and R has OrderedMonoid or R has OrderedAbelianMonoid or R has SemiRng and % has AbelianMonoid and R has OrderedSemiGroup

from AbelianMonoid

*: (PositiveInteger, %) -> %

from AIntervalCategory R

*: (R, %) -> % if R has SemiRng and R has OrderedSemiGroup

from AIntervalCategory R

+: (%, %) -> %

from AIntervalCategory R

+: (%, R) -> %

from AIntervalCategory R

-: % -> % if R has SemiRng and % has AbelianGroup and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid and % has AbelianGroup or R has OrderedAbelianGroup

from AIntervalCategory R

-: (%, %) -> % if R has SemiRng and % has AbelianGroup and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid and % has AbelianGroup or R has OrderedAbelianGroup

from AIntervalCategory R

/: (%, %) -> % if R has OrderedRing and R has Field

from AIntervalCategory R

=: (%, %) -> Boolean

from AIntervalCategory R

^: (%, NonNegativeInteger) -> % if R has SemiRing and R has OrderedMonoid

from AIntervalCategory R

^: (%, PositiveInteger) -> % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from AIntervalCategory R

~=: (%, %) -> Boolean

from BasicType

abs: % -> % if R has OrderedAbelianGroup

from AIntervalCategory R

antiCommutator: (%, %) -> % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from NonAssociativeSemiRng

coerce: % -> List R

from AIntervalCategory R

coerce: % -> OutputForm

from CoercibleTo OutputForm

contains?: (%, %) -> Boolean

from AIntervalCategory R

contains?: (%, R) -> Boolean

from AIntervalCategory R

error?: % -> Boolean

from AIntervalCategory R

inf: % -> R

from AIntervalCategory R

interval: (R, R) -> %

from AIntervalCategory R

inv: % -> % if R has OrderedRing and R has Field

from AIntervalCategory R

latex: % -> String

from SetCategory

leftPower: (%, NonNegativeInteger) -> % if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

leftPower: (%, PositiveInteger) -> % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from Magma

leftRecip: % -> Union(%, failed) if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

negative?: % -> Boolean if R has OrderedAbelianMonoid

from AIntervalCategory R

one?: % -> Boolean if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

opposite?: (%, %) -> Boolean if R has SemiRing and R has OrderedMonoid or R has OrderedAbelianMonoid or R has SemiRng and % has AbelianMonoid and R has OrderedSemiGroup

from AbelianMonoid

positive?: % -> Boolean if R has OrderedAbelianMonoid

from AIntervalCategory R

qinterval: (R, R) -> %

from AIntervalCategory R

recip: % -> Union(%, failed) if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

rightPower: (%, NonNegativeInteger) -> % if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

rightPower: (%, PositiveInteger) -> % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from Magma

rightRecip: % -> Union(%, failed) if R has SemiRing and R has OrderedMonoid

from MagmaWithUnit

sample: % if R has SemiRing and R has OrderedMonoid or R has OrderedAbelianMonoid or R has SemiRng and % has AbelianMonoid and R has OrderedSemiGroup

from AbelianMonoid

subtractIfCan: (%, %) -> Union(%, failed) if R has SemiRng and % has AbelianGroup and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid and % has AbelianGroup

from CancellationAbelianMonoid

sup: % -> R

from AIntervalCategory R

unit?: % -> Boolean if R has OrderedRing and R has Field

from AIntervalCategory R

width: % -> R if R has OrderedAbelianGroup

from AIntervalCategory R

zero?: % -> Boolean if R has OrderedAbelianMonoid or R has SemiRng and % has AbelianMonoid and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

from AIntervalCategory R

AbelianMonoid if R has OrderedAbelianMonoid or R has SemiRing and R has OrderedMonoid

AbelianSemiGroup

AIntervalCategory R

BasicType

BiModule(%, %) if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

CancellationAbelianMonoid if R has SemiRng and % has AbelianGroup and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid and % has AbelianGroup

CoercibleTo OutputForm

LeftModule % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

Magma if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

MagmaWithUnit if R has SemiRing and R has OrderedMonoid

Monoid if R has SemiRing and R has OrderedMonoid

NonAssociativeSemiRing if R has SemiRing and R has OrderedMonoid

NonAssociativeSemiRng if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

RightModule % if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

SemiGroup if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

SemiRing if R has SemiRing and R has OrderedMonoid

SemiRng if R has SemiRng and R has OrderedSemiGroup or R has SemiRing and R has OrderedMonoid

SetCategory