BernoulliQ {gmp} | R Documentation |
Exact Bernoulli Numbers
Description
Return the -th Bernoulli number
, (or
,
see the reference), where
.
Usage
BernoulliQ(n, verbose = getOption("verbose", FALSE))
Arguments
n |
integer vector, |
verbose |
logical indicating if computation should be traced. |
Value
a big rational (class "bigq"
) vector of the
Bernoulli numbers .
Author(s)
Martin Maechler
References
https://en.wikipedia.org/wiki/Bernoulli_number
See Also
Bernoulli
in Rmpfr in arbitrary precision
via Riemann's function.
Bern(n)
in DPQ uses standard (double precision)
R arithmetic for the n-th Bernoulli number.
Examples
(Bn0.10 <- BernoulliQ(0:10))
[Package gmp version 0.7-4 Index]