Algorithm 221: Gamma functions

Walter Gautschi

Communications of the ACM · 1964 · 12 citations · 0 references

DOIFull text

Open access

Concepts

Abstract

real procedure gamma (z); value z; real z; comment This is an auxiliary procedure which evaluates l'(z) for 0 < z =< 3 to 10 significant digits. It is based on a polynomial approximation given in H. Werner and R. Collinge, Math. Comput. 15 (1961), 195--197. This procedure must be replaced by a more accurate one if more than 10 significant digits are desired in Algorithm 222 below. Approximations to the gamma function, accurate up to 18 significant digits, may be found in the paper quoted above; begin integer k; real p, t; array A[0:10];