aboutsummaryrefslogtreecommitdiffstats
path: root/man3/lgamma.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/lgamma.3')
-rw-r--r--man3/lgamma.318
1 files changed, 14 insertions, 4 deletions
diff --git a/man3/lgamma.3 b/man3/lgamma.3
index 1692b748f5..224476286b 100644
--- a/man3/lgamma.3
+++ b/man3/lgamma.3
@@ -27,7 +27,9 @@ Compile with \-std=c99; link with \-lm.
For the definition of the Gamma function, see
.BR tgamma (3).
.PP
-The \fBlgamma\fP() function returns the natural logarithm of
+The
+.BR lgamma ()
+function returns the natural logarithm of
the absolute value of the Gamma function.
The sign of the Gamma function is returned in the
external integer \fIsigngam\fP declared in
@@ -37,13 +39,21 @@ when it is negative.
.PP
Since using a constant location
.I signgam
-is not thread-safe, the functions \fBlgamma_r\fP() etc. have
+is not thread-safe, the functions
+.BR lgamma_r ()
+etc. have
been introduced; they return this sign via the parameter
.IR signp .
.PP
-For non-positive integer values of \fIx\fP, \fBlgamma\fP() returns HUGE_VAL,
+For non-positive integer values of \fIx\fP,
+.BR lgamma ()
+returns HUGE_VAL,
sets \fIerrno\fP to ERANGE and raises the zero divide exception.
-(Similarly, \fBlgammaf\fP() returns HUGE_VALF and \fBlgammal\fP() returns
+(Similarly,
+.BR lgammaf ()
+returns HUGE_VALF and
+.BR lgammal ()
+returns
HUGE_VALL.)
.SH ERRORS
In order to check for errors, set