lgammaAsymp: Asymptotic Log Gamma Function

View source: R/hyper-dist.R

lgammaAsympR Documentation

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)

Arguments

x

numeric vector

n

integer specifying the approximation order.

Value

numeric vector with the same attributes (length() etc) as x, containing approximate lgamma(x) values.

Author(s)

Martin Maechler

See Also

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

Examples

## The function is currently
lgammaAsymp


DPQ documentation built on Sept. 11, 2024, 8:37 p.m.