diff options
author | bde <bde@FreeBSD.org> | 2002-03-26 11:59:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-03-26 11:59:29 +0000 |
commit | 755d0bf04f6bc5a88960b759fbeff6ed789f37b9 (patch) | |
tree | ffda6fa693451722718de741980717e0bef8892b /lib/msun/man | |
parent | 5ff751bb8680caf8634643ee5e0c85c8e6904e24 (diff) | |
download | FreeBSD-src-755d0bf04f6bc5a88960b759fbeff6ed789f37b9.zip FreeBSD-src-755d0bf04f6bc5a88960b759fbeff6ed789f37b9.tar.gz |
Resurrect Lite1's gamma() as C99's tgamma(). Minimal changes.
Diffstat (limited to 'lib/msun/man')
-rw-r--r-- | lib/msun/man/lgamma.3 | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/lib/msun/man/lgamma.3 b/lib/msun/man/lgamma.3 index 97630d1..c3d4ba7 100644 --- a/lib/msun/man/lgamma.3 +++ b/lib/msun/man/lgamma.3 @@ -39,8 +39,9 @@ .Nm lgamma , .Nm lgammaf , .Nm gamma , -.Nm gammaf -.Nd log gamma functions, gamma functions +.Nm gammaf , +.Nm tgamma +.Nd log gamma functions, gamma function .Sh LIBRARY .Lb libm .Sh SYNOPSIS @@ -56,6 +57,8 @@ .Fn gamma "double x" .Ft float .Fn gammaf "float x" +.Ft double +.Fn tgamma "double x" .Sh DESCRIPTION .Fn lgamma x and @@ -83,6 +86,9 @@ are deprecated aliases for and .Fn lgammaf , respectively. +.Fn tgamma x +returns \(*G(x), with no effect on +.Fa signgam . .Sh IDIOSYNCRASIES Do not use the expression .Dq Li signgam\(**exp(lgamma(x)) @@ -97,14 +103,14 @@ Only after or .Fn lgammaf 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. +.Pp +For arguments in its range, +.Fn tgamma +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 , .Fn gammaf , @@ -121,11 +127,18 @@ 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 tgamma +will underflow. .Sh SEE ALSO .Xr math 3 +.Sh STANDARDS +The +.Fn lgamma +and +.Fn tgamma +functions are expected to conform to +.St -isoC-99 . .Sh HISTORY The .Fn lgamma @@ -146,8 +159,6 @@ 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 unimplemented in this library. +function appeared in +.Fx 5.0 . |