linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* patch lgamma.3:Better explain the use signgam
@ 2021-05-28 20:36 Radisson97
  0 siblings, 0 replies; only message in thread
From: Radisson97 @ 2021-05-28 20:36 UTC (permalink / raw)
  To: linux-man

Better explain the use signgam

Signed-off-by: Harms <wharms@bfs.de>
---

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-28 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 20:36 patch lgamma.3:Better explain the use signgam Radisson97

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).