unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

GAMMA(3M)                                                            GAMMA(3M)



NAME
       gamma - log gamma function

SYNOPSIS
       #include <&lt;math.h>&gt;

       double gamma(x)
       double x;

DESCRIPTION
       Gamma  returns ln |(|x|)|.  The sign of (|x|) is returned in the exter-
       nal integer signgam.  The following C program might be used  to  calcu-
       late :

            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.



                                19 January 1983                      GAMMA(3M)