summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-27 04:22:13 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-27 04:22:13 +0000
commitd4823ae34aea9f9e668f16bcda2a89859dd9acc0 (patch)
treeac92c7c63c3c7f648b94215cd0245b0e14d0d634 /lib/libm
parent39eb69d06620cf584686ae8d2a0655b3c4287fb6 (diff)
final pass at *f in terms of the double precision version.
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/man/lgamma.36
-rw-r--r--lib/libm/man/rint.36
-rw-r--r--lib/libm/man/sinh.36
-rw-r--r--lib/libm/man/sqrt.319
-rw-r--r--lib/libm/man/tan.314
-rw-r--r--lib/libm/man/tanh.314
6 files changed, 44 insertions, 21 deletions
diff --git a/lib/libm/man/lgamma.3 b/lib/libm/man/lgamma.3
index b4761e77942..6ee8de3b2b8 100644
--- a/lib/libm/man/lgamma.3
+++ b/lib/libm/man/lgamma.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lgamma.3,v 1.10 2000/04/15 02:15:28 aaron Exp $
+.\" $OpenBSD: lgamma.3,v 1.11 2003/02/27 04:22:12 jason Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -64,6 +64,10 @@ returns ln\||\(*G(x)|.
The external integer
.Fa signgam
returns the sign of \(*G(x).
+The
+.Fn lgammaf
+function is a single precision version of
+.Fn lgamma .
.Sh IDIOSYNCRASIES
Do not use the expression
.Dq Li signgam\(**exp(lgamma(x))
diff --git a/lib/libm/man/rint.3 b/lib/libm/man/rint.3
index a37af931655..cfee5bd7f1e 100644
--- a/lib/libm/man/rint.3
+++ b/lib/libm/man/rint.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rint.3,v 1.5 2000/03/02 00:29:50 todd Exp $
+.\" $OpenBSD: rint.3,v 1.6 2003/02/27 04:22:12 jason Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -52,6 +52,10 @@ function returns the integral value (represented as a double precision number)
nearest to
.Fa x
according to the prevailing rounding mode.
+The
+.Fn rintf
+function is a single precision version of
+.Fn rint .
.Sh SEE ALSO
.Xr abs 3 ,
.Xr ceil 3 ,
diff --git a/lib/libm/man/sinh.3 b/lib/libm/man/sinh.3
index cd7e006e2db..45730e88153 100644
--- a/lib/libm/man/sinh.3
+++ b/lib/libm/man/sinh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sinh.3,v 1.6 2000/03/02 00:29:50 todd Exp $
+.\" $OpenBSD: sinh.3,v 1.7 2003/02/27 04:22:12 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -49,6 +49,10 @@ The
.Fn sinh
function computes the hyperbolic sine of
.Fa x .
+The
+.Fn sinhf
+function is a single precision version of
+.Fn sinh .
.Sh RETURN VALUES
The
.Fn sinh
diff --git a/lib/libm/man/sqrt.3 b/lib/libm/man/sqrt.3
index 25547deb977..d0009172be0 100644
--- a/lib/libm/man/sqrt.3
+++ b/lib/libm/man/sqrt.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sqrt.3,v 1.6 2000/03/02 00:29:50 todd Exp $
+.\" $OpenBSD: sqrt.3,v 1.7 2003/02/27 04:22:12 jason Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -54,18 +54,21 @@
.Sh DESCRIPTION
The
.Fn cbrt
-and
-.Fn cbrtf
-functions compute
-the cube root of
+function computes the cube root of
.Ar x .
+The
+.Fn cbrtf
+function is a single precision version of
+.Fn cbrt .
.Pp
The
.Fn sqrt
-and
-.Fn sqrtf
-functions compute
+function computes
the non-negative square root of x.
+The
+.Fn sqrtf
+function is a single precision version of
+.Fn sqrt .
.Sh RETURN VALUES
If x is negative,
.Fn sqrt "x"
diff --git a/lib/libm/man/tan.3 b/lib/libm/man/tan.3
index 31312357384..eaecc5b60cf 100644
--- a/lib/libm/man/tan.3
+++ b/lib/libm/man/tan.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tan.3,v 1.6 2000/03/02 00:29:50 todd Exp $
+.\" $OpenBSD: tan.3,v 1.7 2003/02/27 04:22:12 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,11 +48,13 @@
.Sh DESCRIPTION
The
.Fn tan
-and
-.Fn tanf
-functions compute the tangent of
+function computes the tangent of
.Fa x
(measured in radians).
+The
+.Fn tanf
+function is a single precision version of
+.Fn tan .
A large magnitude argument may yield a result
with little or no significance.
For a discussion of error due to roundoff, see
@@ -60,7 +62,9 @@ For a discussion of error due to roundoff, see
.Sh RETURN VALUES
The
.Fn tan
-function returns the tangent value.
+and
+.Fn tanf
+functions return the tangent value.
.Sh SEE ALSO
.Xr acos 3 ,
.Xr asin 3 ,
diff --git a/lib/libm/man/tanh.3 b/lib/libm/man/tanh.3
index 99af7a9b80f..e126be546ee 100644
--- a/lib/libm/man/tanh.3
+++ b/lib/libm/man/tanh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tanh.3,v 1.5 2000/03/02 00:29:50 todd Exp $
+.\" $OpenBSD: tanh.3,v 1.6 2003/02/27 04:22:12 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,16 +48,20 @@
.Sh DESCRIPTION
The
.Fn tanh
-and
-.Fn tanhf
-functions compute the hyperbolic tangent of
+function computes the hyperbolic tangent of
.Fa x .
+The
+.Fn tanhf
+function is a single precision version of
+.Fn tanh .
For a discussion of error due to roundoff, see
.Xr math 3 .
.Sh RETURN VALUES
The
.Fn tanh
-function returns the hyperbolic tangent value.
+and
+.Fn tanhf
+functions return the hyperbolic tangent value.
.Sh SEE ALSO
.Xr acos 3 ,
.Xr asin 3 ,