View source: R/Stirling-n-etc.R
BernoulliQ | R Documentation |
Return the n
-th Bernoulli number B_n
, (or B_n^+
,
see the reference), where B_1 = + \frac 1 2
.
BernoulliQ(n, verbose = getOption("verbose", FALSE))
n |
integer vector, |
verbose |
logical indicating if computation should be traced. |
a big rational (class "bigq"
) vector of the
Bernoulli numbers B_n
.
Martin Maechler
https://en.wikipedia.org/wiki/Bernoulli_number
Bernoulli
in Rmpfr in arbitrary precision
via Riemann's \zeta
function.
Bern(n)
in DPQ uses standard (double precision)
R arithmetic for the n-th Bernoulli number.
(Bn0.10 <- BernoulliQ(0:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.