Learn R Programming

DPQ (version 0.5-9)

lgammaAsymp: Asymptotic Log Gamma Function

Description

Compute an n-th order asymptotic approximation to log Gamma function, using Bernoulli numbers Bern(k) for k in \(1, \ldots, 2n\).

Usage

lgammaAsymp(x, n)

Value

numeric vector with the same attributes (length() etc) as

x, containing approximate lgamma(x) values.

Arguments

x

numeric vector

n

integer specifying the approximation order.

Author

Martin Maechler

See Also

lgamma; the \(n\)-th Bernoulli number Bern(n), and also exact fractions Bernoulli numbers BernoulliQ() from package gmp.

Examples

Run this code
## The function is currently
lgammaAsymp

Run the code above in your browser using DataLab