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

Prev:interval+ ( i1 i2 -- i3 )
Next:interval* ( i1 i2 -- i3 )


Vocabulary
math.intervals

Inputs
i1an interval
i2an interval


Outputs
i3an interval


Word description
Subtracts i2 from i1.

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

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


Definition