Handbook
Glossary
partial-sums ( n -- results )
Vocabulary
benchmark
.
partial-sums
Inputs
n
an
object
Outputs
results
an
object
Definition
USING:
combinators
make
;
IN:
benchmark.partial-sums
:
partial-sums
( n -- results )
[
{
[
2/3^k
\
2/3^k
,,
]
[
k^-0.5
\
k^-0.5
,,
]
[
1/k(k+1)
\
1/k(k+1)
,,
]
[
flint-hills
\
flint-hills
,,
]
[
cookson-hills
\
cookson-hills
,,
]
[
harmonic
\
harmonic
,,
]
[
riemann-zeta
\
riemann-zeta
,,
]
[
alternating-harmonic
\
alternating-harmonic
,,
]
[
gregory
\
gregory
,,
]
}
cleave
]
{
}
make
;