Annotation of 43BSDReno/old/libm/man/gamma.3, revision 1.1.1.1

1.1       root        1: .\"    @(#)gamma.3     6.1 (Berkeley) 5/15/85
                      2: .\"
                      3: .TH GAMMA 3M  "May 15, 1985"
                      4: .AT 3
                      5: .SH NAME
                      6: gamma \- log gamma function
                      7: .SH SYNOPSIS
                      8: .nf
                      9: .B #include <math.h>
                     10: .PP
                     11: .B double gamma(x)
                     12: .B double x;
                     13: .fi
                     14: .SH DESCRIPTION
                     15: .I Gamma
                     16: returns ln \||\|\(*G(\||\|\fIx\fR\||\|)\||\|.
                     17: The sign of \(*G(\||\|\fIx\fR\||\|) is returned in the external integer
                     18: .IR signgam .
                     19: The following C program might be used to calculate \(*G:
                     20: .PP
                     21: .nf
                     22:        y = gamma(x);
                     23:        if (y > 88.0)
                     24:                error();
                     25:        y = exp(y);
                     26:        if(signgam)
                     27:                y = \-y;
                     28: .fi
                     29: .SH DIAGNOSTICS
                     30: A huge value is returned for negative integer arguments.
                     31: .SH BUGS
                     32: There should be a positive indication of error.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.