Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

BernoulliQ

Exact Bernoulli Numbers


Description

Return the n-th Bernoulli number B_n, (or Bn+, see the reference), where B_1 = + 1/2.

Usage

BernoulliQ(n, verbose = getOption("verbose", FALSE))

Arguments

n

integer vector, n >= 0.

verbose

logical indicating if computation should be traced.

Value

a big rational (class "bigq") vector of the Bernoulli numbers B_n.

Author(s)

Martin Maechler

References

See Also

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.

Examples

(Bn0.10 <- BernoulliQ(0:10))

gmp

Multiple Precision Arithmetic

v0.6-2
GPL (>= 2)
Authors
Antoine Lucas, Immanuel Scholz, Rainer Boehme <rb-gmp@reflex-studio.de>, Sylvain Jasson <Sylvain.Jasson@inrae.fr>, Martin Maechler <maechler@stat.math.ethz.ch>
Initial release
2021-01-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.