GAMMA(3M) UNIX Programmer's Manual GAMMA(3M) NAME gamma - log gamma function SYNOPSIS #include double gamma(x) double x; DESCRIPTION _G_a_m_m_a returns ln |G(|_x|)|. The sign of G(|_x|) is returned in the external integer _s_i_g_n_g_a_m. The following C program might be used to calculate G: y = gamma(x); if (y > 88.0) error(); y = exp(y); if(signgam) y = -y; DIAGNOSTICS A huge value is returned for negative integer arguments. BUGS There should be a positive indication of error. Printed 5/24/83 1