ASA245
Logarithm of Gamma Function


ASA245 is a C++ library, using double precision arithmetic, which evaluates the logarithm of the gamma function.

ASA245 is Applied Statistics Algorithm 245. Source code for many Applied Statistics Algorithms is available through STATLIB.

Related Data and Programs:

ASA245 is also available in a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

GSL is a C++ library which includes many routines for evaluating special functions.

SLATEC is a FORTRAN90 library which evaluates many special functions.

SPECFUN is a FORTRAN77 library which evaluates certain special functions using fitted data.

TEST_VALUES is a C++ library which contains sample values for a number of distributions.

TOMS291 is a FORTRAN77 library which evaluates the logarithm of the Gamma function.

Reference:

  1. Cornelius Lanczos,
    A precision approximation of the gamma function,
    SIAM Journal on Numerical Analysis, B,
    Volume 1, 1964, pages 86-96.
  2. Allan Mcleod,
    Algorithm AS 245: A Robust and Reliable Algorithm for the Logarithm of the Gamma Function,
    Applied Statistics,
    Volume 38, Number 2, 1989, pages 397-402.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the C++ source codes.


Last revised on 15 January 2008.