asa245


asa245, a Fortran77 code which evaluates the logarithm of the gamma function, by Allan Mcleod;

This is a version of Applied Statistics Algorithm 245.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

asa245 is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

asa245_test

fn, a Fortran77 library which approximates elementary and special functions using Chebyshev polynomials, by Wayne Fullerton.

specfun, a Fortran77 library which evaluates certain special functions using fitted data.

TEST_VALUES, a Fortran77 library which contains sample values for a number of distributions.

TOMS291, a Fortran77 library which evaluates the logarithm of the Gamma function.

TOMS708, a Fortran77 library which evaluates several special functions, including the logarithm of the Gamma function.

Author:

Original Fortran77 version by Allan Mcleod; This version by John Burkardt.

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:


Last revised on 27 August 2023.