Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 1st Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

GAMMA(2)

NAME

gamma − log gamma function

SYNOPSIS

doublegamma(double x)

intsigngam;

DESCRIPTION

­Gamma returns ln |Γ(x)|. The sign of Γ(x) is returned in the external integer signgam.

EXAMPLES

Computation of the gamma function:

errno = 0;
y = gamma(x);
if(errno || y > 88)
error();
y = signgam∗exp(y);

SEE ALSO

intro(2)

Plan 9  —  January 03, 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026