lgammaAsymp {DPQ} | R 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
[Package DPQ version 0.6-0 Index]