Annotation of researchv10dc/man/adm/man3/gamma.3, revision 1.1.1.1

1.1       root        1: .TH GAMMA 3M
                      2: .CT 2 math
                      3: .SH NAME
                      4: gamma \(mi log gamma function
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .B #include <math.h>
                      8: .PP
                      9: .B double gamma(x)
                     10: .B double x;
                     11: .PP
                     12: .B extern int signgam;
                     13: .fi
                     14: .SH DESCRIPTION
                     15: .I Gamma
                     16: returns
                     17: ln |\(*G(\|\fIx\fP\|)|.
                     18: The sign of
                     19: \(*G(\|\fIx\fP\|)
                     20: is returned in the external integer
                     21: .IR signgam .
                     22: .SH EXAMPLES
                     23: Computation of the gamma function:
                     24: .PP
                     25: .nf
                     26: .ta 8n +8n
                     27: .ft L
                     28:        errno = 0;
                     29:        y = gamma(x);
                     30:        if(errno || (y > 88.0))
                     31:                error();
                     32:        y = signgam*exp(y);
                     33: .fi
                     34: .ft P
                     35: .SH DIAGNOSTICS
                     36: A large value
                     37: .RL ( HUGE )
                     38: is returned for negative integer arguments
                     39: and
                     40: .I errno
                     41: is set to
                     42: .BR EDOM .
                     43: .SH BUGS
                     44: There should be a positive indication of error.
                     45: .br
                     46: The name should indicate the answer is a logarithm,
                     47: perhaps
                     48: .IR lgamma .

unix.superglobalmegacorp.com

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