interval+ ( i1 i2 -- i3 )
Factor handbook » The language » Numbers » Intervals » Interval arithmetic

Next:interval- ( i1 i2 -- i3 )


Vocabulary
math.intervals

Inputs
i1an interval
i2an interval


Outputs
i3an interval


Word description
Adds two intervals.

The output interval contains all possible values from adding any number in i1 to any number in i2.

Examples
USING: math.intervals prettyprint ; 10 11 [a,b] 5 7 [a,b] interval+ .
T{ interval { from { 15 t } } { to { 18 t } } }


Definition