Handbook
Glossary
next-approx ( seq -- )
Vocabulary
math
.
continued-fractions
Inputs
seq
a mutable sequence
Outputs
None
Word description
Compute the next step in continued fraction calculation.
Definition
USING:
kernel
math
math.continued-fractions.private
sequences
;
IN:
math.continued-fractions
:
next-approx
( seq -- )
dup
[
pop
split-float
]
[
push
]
bi
[
drop
]
[
recip
swap
push
]
if-zero
;