BernoulliQ: Exact Bernoulli Numbers

View source: R/Stirling-n-etc.R

BernoulliQR Documentation

Exact Bernoulli Numbers

Description

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

Usage

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

Arguments

n

integer vector, n \ge 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

https://en.wikipedia.org/wiki/Bernoulli_number

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 documentation built on Sept. 11, 2024, 7:37 p.m.

Related to BernoulliQ in gmp...