summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/gamma.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/gamma.3
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/gamma.3')
-rw-r--r--static/unix-v10/man3/gamma.348
1 files changed, 48 insertions, 0 deletions
diff --git a/static/unix-v10/man3/gamma.3 b/static/unix-v10/man3/gamma.3
new file mode 100644
index 00000000..0c7e2dd9
--- /dev/null
+++ b/static/unix-v10/man3/gamma.3
@@ -0,0 +1,48 @@
+.TH GAMMA 3M
+.CT 2 math
+.SH NAME
+gamma \(mi log gamma function
+.SH SYNOPSIS
+.nf
+.B #include <math.h>
+.PP
+.B double gamma(x)
+.B double x;
+.PP
+.B extern int signgam;
+.fi
+.SH DESCRIPTION
+.I Gamma
+returns
+ln |\(*G(\|\fIx\fP\|)|.
+The sign of
+\(*G(\|\fIx\fP\|)
+is returned in the external integer
+.IR signgam .
+.SH EXAMPLES
+Computation of the gamma function:
+.PP
+.nf
+.ta 8n +8n
+.ft L
+ errno = 0;
+ y = gamma(x);
+ if(errno || (y > 88.0))
+ error();
+ y = signgam*exp(y);
+.fi
+.ft P
+.SH DIAGNOSTICS
+A large value
+.RL ( HUGE )
+is returned for negative integer arguments
+and
+.I errno
+is set to
+.BR EDOM .
+.SH BUGS
+There should be a positive indication of error.
+.br
+The name should indicate the answer is a logarithm,
+perhaps
+.IR lgamma .