Handbook
Glossary
interval-recip ( i1 -- i2 )
Factor handbook
»
The language
»
Numbers
»
Intervals
»
Interval arithmetic
Prev:
interval-bitnot ( i1 -- i2 )
Next:
interval-2/ ( i1 -- i2 )
Vocabulary
math
.
intervals
Inputs
i1
an
interval
Outputs
i2
an
interval
Word description
Outputs the reciprocal of an interval. Outputs
f
if
i1
contains points arbitrarily close to zero.
Definition
USING:
kernel
;
IN:
math.intervals
:
interval-recip
( i1 -- i2 )
1
[a,a]
swap
interval/
;