Handbook
Glossary
cfrac-b ( n cfrac -- b )
Vocabulary
rosetta-code.continued-fraction
Inputs
n
an
object
cfrac
an
object
Outputs
b
an
object
Definition
IN:
rosetta-code.continued-fraction
GENERIC:
cfrac-b
( n cfrac -- b )
Methods
USING:
combinators
kernel
math
rosetta-code.continued-fraction
;
M:
napier
cfrac-b
drop
{
{
1
[
1
]
}
[
1
-
]
}
case
;
USING:
kernel
math
math.functions
rosetta-code.continued-fraction
;
M:
pi
cfrac-b
drop
2
*
1
-
2
^
;
USING:
kernel
rosetta-code.continued-fraction
;
M:
sqrt2
cfrac-b
2drop
1
;