Vocabularymath.
intervalsInputsOutputsWord descriptionOutputs the smallest interval containing the set-theoretic union of
i1 and
i2 (the union itself may not be an interval).
ExamplesUSING: math.intervals prettyprint ;
1 5 [a,b] 10 15 [a,b] interval-union .
T{ interval { from { 1 t } } { to { 15 t } } }
USING: math.intervals prettyprint ;
empty-interval empty-interval interval-union .
empty-interval
See alsointerval-intersectDefinition