Removed confusing text which implies that gamma() computes the gamma

instead of log gamma function.  This was true with 4.4BSD's libm, but
they are equivalent on all other systems (XPG4.2 requires this).
This commit is contained in:
jtc 1997-07-25 20:41:18 +00:00
parent 0f06fa608f
commit 9088826695
1 changed files with 4 additions and 16 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)lgamma.3 6.6 (Berkeley) 12/3/92
.\" $Id: lgamma.3,v 1.8 1996/03/30 01:34:05 jtc Exp $
.\" $Id: lgamma.3,v 1.9 1997/07/25 20:41:18 jtc Exp $
.\"
.Dd December 3, 1992
.Dt LGAMMA 3
@ -77,18 +77,9 @@ Only after
.Fn lgamma
has returned can signgam be correct.
.Pp
For arguments in its range,
.Fn gamma
is preferred, as for positive arguments
it is accurate to within one unit in the last place.
Exponentiation of
.Fn lgamma
will lose up to 10 significant bits.
.Sh RETURN VALUES
.Fn Gamma
and
.Fn lgamma
return appropriate values unless an argument is out of range.
.Fn Lgamma
returns appropriate values unless an argument is out of range.
Overflow will occur for sufficiently large positive values, and
non-positive integers.
On the
@ -97,10 +88,7 @@ the reserved operator is returned,
and
.Va errno
is set to
.Er ERANGE
For large non-integer negative values,
.Fn gamma
will underflow.
.Er ERANGE .
.Sh SEE ALSO
.Xr math 3
.Sh HISTORY