patch lgamma.3:Better explain the use signgam

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Better explain the use signgam

Signed-off-by: Harms <wharms@xxxxxx>
---

diff --git a/man3/lgamma.3 b/man3/lgamma.3
index 81f530074..5820a62f5 100644
--- a/man3/lgamma.3
+++ b/man3/lgamma.3
@@ -24,16 +24,19 @@ lgamma, lgammaf, lgammal, lgamma_r, lgammaf_r, lgammal_r \- log gamma function
 .sp
 Compile with -std=c99; link with \-lm.
 .SH DESCRIPTION
-For the definition of the Gamma function, see
-.BR tgamma (3).
-.PP
 The \fBlgamma()\fP 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
 .IR <math.h> .
-It is 1 when the Gamma function is positive or zero, \-1
-when it is negative.
+The real gamma function can be computed as:
+.PP
+.RS
+gam  = signgam * exp(gamma(x));
+.RE
+.PP
+For the definition of the Gamma function, see
+.BR tgamma (3).
 .PP
 Since using a constant location
 .I signgam



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux