Handbook
Glossary
interval-neg ( i1 -- i2 )
Factor handbook
»
The language
»
Numbers
»
Intervals
»
Interval arithmetic
Prev:
interval-1- ( i1 -- i2 )
Next:
interval-bitnot ( i1 -- i2 )
Vocabulary
math
.
intervals
Inputs
i1
an
interval
Outputs
i2
an
interval
Word description
Negates an interval.
Examples
USING: math.intervals prettyprint ; 10 11 [a,b] interval-neg .
T{ interval { from { -11 t } } { to { -10 t } } }
Definition
IN:
math.intervals
:
interval-neg
( i1 -- i2 )
-1
[a,a]
interval*
;