summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-03-26 10:18:20 +0000
committerbde <bde@FreeBSD.org>2002-03-26 10:18:20 +0000
commit4fdf2dbaad8a56114e816f78b39a27db224d6eff (patch)
treeb922cf15c128fb7367472c2602a1472756610dc5
parentda3b7e686d73c08a4bb3df90b1bd508b5cbd9bcc (diff)
downloadFreeBSD-src-4fdf2dbaad8a56114e816f78b39a27db224d6eff.zip
FreeBSD-src-4fdf2dbaad8a56114e816f78b39a27db224d6eff.tar.gz
Fixed some bugs in the description of plain gamma() (and gammaf()).
Give a more detailed and correct history of when gamma() was actually the gamma function.
-rw-r--r--lib/msun/man/lgamma.338
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/msun/man/lgamma.3 b/lib/msun/man/lgamma.3
index 7805ad8..97630d1 100644
--- a/lib/msun/man/lgamma.3
+++ b/lib/msun/man/lgamma.3
@@ -75,11 +75,14 @@ The external integer
.Fa signgam
returns the sign of \(*G(x).
.Pp
-.Fn gamma x
+.Fn gamma
+and
+.Fn gammaf
+are deprecated aliases for
+.Fn lgamma
and
-.Fn gammaf x
-return ln\||\(*G(x)|, with no effect on
-.Fa signgam .
+.Fn lgammaf ,
+respectively.
.Sh IDIOSYNCRASIES
Do not use the expression
.Dq Li signgam\(**exp(lgamma(x))
@@ -97,8 +100,6 @@ has returned can signgam be correct.
.\".Pp
.\"For arguments in its range,
.\".Fn gamma
-.\"and
-.\".Fn gammaf
.\"is preferred, as for positive arguments
.\"it is accurate to within one unit in the last place.
.\"Exponentiation of
@@ -120,9 +121,9 @@ and
.Va errno
is set to
.Er ERANGE .
-For large non-integer negative values,
-.Fn gamma
-will underflow.
+\."For large non-integer negative values,
+\.".Fn gamma
+\."will underflow.
.Sh SEE ALSO
.Xr math 3
.Sh HISTORY
@@ -135,19 +136,18 @@ The
function appeared in
.Bx 4.4
as a function which computed \(*G(x).
-In many older libraries the function
-.Fn gamma
-calculated the same value as
-.Fn lgamma .
-Now
+This version was used in
+.Fx 1.1 .
+The name
.Fn gamma
-computes ln\||\(*G(x)|,
-but it uses a different algorithm,
-and it does not set
-.Fa signgam .
+was originally dedicated to the
+.Fn lgamma
+function,
+and that usage was restored by switching to Sun's fdlibm in
+.Fx 1.1.5 .
The
.St -isoC-99
standard specifies a function
.Fn tgamma
for computing \(*G(x).
-This function is currently unimplimented in this library.
+This function is currently unimplemented in this library.
OpenPOWER on IntegriCloud