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
Multiplies two intervals.

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

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

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


Definition