diff options
author | Bruce Evans <bde@FreeBSD.org> | 2002-03-26 10:18:20 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2002-03-26 10:18:20 +0000 |
commit | 675902aa7381bf276cab40d5218cab81c43779ed (patch) | |
tree | b922cf15c128fb7367472c2602a1472756610dc5 /lib/msun | |
parent | 730c9b8cfb9c372da79283e67b694b319ffc407e (diff) | |
download | src-675902aa7381bf276cab40d5218cab81c43779ed.tar.gz src-675902aa7381bf276cab40d5218cab81c43779ed.zip |
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.
Notes
Notes:
svn path=/head/; revision=93204
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/man/lgamma.3 | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/msun/man/lgamma.3 b/lib/msun/man/lgamma.3 index 7805ad854a67..97630d10cd09 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. |