|
|
1.1 ! root 1: .TH GAMMA 3M "19 January 1983" ! 2: .SH NAME ! 3: gamma \- log gamma function ! 4: .SH SYNOPSIS ! 5: .nf ! 6: .B #include <math.h> ! 7: .PP ! 8: .B double gamma(x) ! 9: .B double x; ! 10: .fi ! 11: .SH DESCRIPTION ! 12: .I Gamma ! 13: returns ln \||\|\(*G(\||\|\fIx\fR\||\|)\||\|. ! 14: The sign of \(*G(\||\|\fIx\fR\||\|) is returned in the external integer ! 15: .IR signgam . ! 16: The following C program might be used to calculate \(*G: ! 17: .PP ! 18: .nf ! 19: y = gamma(x); ! 20: if (y > 88.0) ! 21: error(); ! 22: y = exp(y); ! 23: if(signgam) ! 24: y = \-y; ! 25: .fi ! 26: .SH DIAGNOSTICS ! 27: A huge value is returned for negative integer arguments. ! 28: .SH BUGS ! 29: There should be a positive indication of error.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.