summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-27 01:07:44 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-27 01:07:44 +0000
commit4f5627528f9bc99c93d4ea01fdefe233f917603c (patch)
tree234f095c22afb5127e58306944c76b3ddd439743 /lib/libm
parent077831197a41fdd8a68a9f3606a5a183f98f2fe7 (diff)
describe *f in terms of the double precision version (more of this to come... after dinner).
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/man/acos.310
-rw-r--r--lib/libm/man/acosh.310
-rw-r--r--lib/libm/man/asin.310
-rw-r--r--lib/libm/man/asinh.310
-rw-r--r--lib/libm/man/atan.310
-rw-r--r--lib/libm/man/atan2.310
-rw-r--r--lib/libm/man/atanh.36
-rw-r--r--lib/libm/man/ceil.310
-rw-r--r--lib/libm/man/cosh.310
-rw-r--r--lib/libm/man/erf.313
-rw-r--r--lib/libm/man/exp.326
-rw-r--r--lib/libm/man/fabs.314
12 files changed, 98 insertions, 41 deletions
diff --git a/lib/libm/man/acos.3 b/lib/libm/man/acos.3
index 3ff5270fcf1..7c21f6226d2 100644
--- a/lib/libm/man/acos.3
+++ b/lib/libm/man/acos.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: acos.3,v 1.7 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: acos.3,v 1.8 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,12 +48,14 @@
.Sh DESCRIPTION
The
.Fn acos
-and
-.Fn acosf
-functions compute the principal value of the arc cosine of
+function computes the principal value of the arc cosine of
.Fa x
in the range
.Bq 0 , \*(Pi .
+The
+.Fn acosf
+is a single precision version of
+.Fn acos .
.Sh RETURN VALUES
If |x|>1,
.Fn acos "x"
diff --git a/lib/libm/man/acosh.3 b/lib/libm/man/acosh.3
index 82a7f51fc39..3b78f6e81cc 100644
--- a/lib/libm/man/acosh.3
+++ b/lib/libm/man/acosh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: acosh.3,v 1.7 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: acosh.3,v 1.8 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,12 +48,14 @@
.Sh DESCRIPTION
The
.Fn acosh
-and
-.Fn acoshf
-functions compute the inverse hyperbolic cosine
+function computes the inverse hyperbolic cosine
of the real
argument
.Ar x .
+The
+.Fn acoshf
+function is a single precision version of
+.Fn acosh .
.Sh RETURN VALUES
If x is less than one,
.Fn acosh "x"
diff --git a/lib/libm/man/asin.3 b/lib/libm/man/asin.3
index bfd7be36c45..e384f7e6fb8 100644
--- a/lib/libm/man/asin.3
+++ b/lib/libm/man/asin.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: asin.3,v 1.7 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: asin.3,v 1.8 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,14 +48,16 @@
.Sh DESCRIPTION
The
.Fn asin
-and
-.Fn asinf
-functions compute the principal value of the arc sine of
+function computes the principal value of the arc sine of
.Fa x
in the range
.Bk -words
.Bq -\*(Pi/2, +\*(Pi/2 .
.Ek
+The
+.Fn asinf
+function is a single precision version of
+.Fn asin .
.Sh RETURN VALUES
If |x|>1,
.Fn asin "x"
diff --git a/lib/libm/man/asinh.3 b/lib/libm/man/asinh.3
index 540e14fedec..9ceca282679 100644
--- a/lib/libm/man/asinh.3
+++ b/lib/libm/man/asinh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: asinh.3,v 1.7 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: asinh.3,v 1.8 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,9 +48,7 @@
.Sh DESCRIPTION
The
.Fn asinh
-and
-.Fn asinhf
-functions compute the inverse hyperbolic sine
+function computes the inverse hyperbolic sine
of the real
argument
.Sh RETURN VALUES
@@ -60,6 +58,10 @@ and
.Fn asinhf
functions return the inverse hyperbolic sine of
.Ar x .
+The
+.Fn asinhf
+function is a single precision version of
+.Fn asinh .
.Sh SEE ALSO
.Xr acosh 3 ,
.Xr atanh 3 ,
diff --git a/lib/libm/man/atan.3 b/lib/libm/man/atan.3
index ebe1120f77a..ee7656ae317 100644
--- a/lib/libm/man/atan.3
+++ b/lib/libm/man/atan.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: atan.3,v 1.7 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: atan.3,v 1.8 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,14 +48,16 @@
.Sh DESCRIPTION
The
.Fn atan
-and
-.Fn atanf
-functions compute the principal value of the arc tangent of
+function computes the principal value of the arc tangent of
.Fa x
in the range
.Bk -words
.Bq -\*(Pi/2 , +\*(Pi/2 .
.Ek
+The
+.Fn atanf
+function is a single precision version of
+.Fn atan .
.Sh SEE ALSO
.Xr acos 3 ,
.Xr asin 3 ,
diff --git a/lib/libm/man/atan2.3 b/lib/libm/man/atan2.3
index 2e2c536eedc..f275eaa8f79 100644
--- a/lib/libm/man/atan2.3
+++ b/lib/libm/man/atan2.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: atan2.3,v 1.6 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: atan2.3,v 1.7 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,12 +48,14 @@
.Sh DESCRIPTION
The
.Fn atan2
-and
-.Fn atan2f
-functions compute the principal value of the arc tangent of
+function computes the principal value of the arc tangent of
.Ar y/ Ns Ar x ,
using the signs of both arguments to determine the quadrant of
the return value.
+The
+.Fn atan2f
+function is a single precision version of
+.Fn atan2 .
.Sh RETURN VALUES
The
.Xr atan2
diff --git a/lib/libm/man/atanh.3 b/lib/libm/man/atanh.3
index 726fd30529b..70f15557188 100644
--- a/lib/libm/man/atanh.3
+++ b/lib/libm/man/atanh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: atanh.3,v 1.7 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: atanh.3,v 1.8 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -54,6 +54,10 @@ functions compute the inverse hyperbolic tangent
of the real
argument
.Ar x .
+The
+.Fn atanhf
+function is a single precision version of
+.Fn atanh .
.Sh RETURN VALUES
If |x|>=1,
.Fn atanh "x"
diff --git a/lib/libm/man/ceil.3 b/lib/libm/man/ceil.3
index 31c1b3365c6..27112f5a90a 100644
--- a/lib/libm/man/ceil.3
+++ b/lib/libm/man/ceil.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ceil.3,v 1.6 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: ceil.3,v 1.7 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,11 +48,13 @@
.Sh DESCRIPTION
The
.Fn ceil
-and
-.Fn ceilf
-functions return the smallest integral value
+function returns the smallest integral value
greater than or equal to
.Fa x .
+The
+.Fn ceilf
+function is a single precision version of
+.Fn ceil .
.Sh SEE ALSO
.Xr abs 3 ,
.Xr fabs 3 ,
diff --git a/lib/libm/man/cosh.3 b/lib/libm/man/cosh.3
index 2c0da841de9..894758c7f51 100644
--- a/lib/libm/man/cosh.3
+++ b/lib/libm/man/cosh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cosh.3,v 1.6 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: cosh.3,v 1.7 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1989, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -48,10 +48,12 @@
.Sh DESCRIPTION
The
.Fn cosh
-and
-.Fn coshf
-functions compute the hyperbolic cosine of
+function computes the hyperbolic cosine of
.Fa x .
+The
+.Fn coshf
+function is a single precision version of
+.Fn cosh .
.Sh RETURN VALUES
If the magnitude of x is too large,
.Fn cosh "x"
diff --git a/lib/libm/man/erf.3 b/lib/libm/man/erf.3
index 5c60a86a86d..19100381d5a 100644
--- a/lib/libm/man/erf.3
+++ b/lib/libm/man/erf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: erf.3,v 1.8 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: erf.3,v 1.9 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -57,7 +57,12 @@ These functions calculate the error function of
.Pp
The
.Fn erf
-calculates the error function of x; where
+calculates the error function of x, and
+the
+.Fn erff
+function is a single precision version of
+.Fn erf .
+The error function is defined as:
.Bd -filled -offset indent
.if n \{\
erf(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt. \}
@@ -78,6 +83,10 @@ from 1.0.
This is useful, since for large
.Fa x
places disappear.
+The
+.Fn erfcf
+function is a single precision version of
+.Fn erfc .
.Sh SEE ALSO
.Xr math 3
.Sh HISTORY
diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3
index 7276c371bb0..62b8fcab9b1 100644
--- a/lib/libm/man/exp.3
+++ b/lib/libm/man/exp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: exp.3,v 1.10 2000/04/15 02:15:28 aaron Exp $
+.\" $OpenBSD: exp.3,v 1.11 2003/02/27 01:07:43 jason Exp $
.\"
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
@@ -81,28 +81,48 @@ The
.Fn exp
function computes the exponential value of the given argument
.Fa x .
+The
+.Fn expf
+function is a single precision version of
+.Fn exp .
.Pp
The
.Fn expm1
function computes the value exp(x)\-1 accurately even for tiny argument
.Fa x .
+The
+.Fn expm1f
+function is a single precision version of
+.Fn expm1 .
.Pp
The
.Fn log
function computes the value of the natural logarithm of argument
.Fa x .
+The
+.Fn logf
+function is a single precision version of
+.Fn log .
.Pp
The
.Fn log10
function computes the value of the logarithm of argument
.Fa x
to base 10.
+The
+.Fn log10f
+function is a single precision version of
+.Fn log10 .
.Pp
The
.Fn log1p
function computes
the value of log(1+x) accurately even for tiny argument
.Fa x .
+The
+.Fn log1pf
+function is a single precision version of
+.Fn log1p .
.Pp
The
.Fn pow
@@ -111,6 +131,10 @@ of
.Ar x
to the exponent
.Ar y .
+The
+.Fn powf
+function is a single precision version of
+.Fn pow .
.Sh ERROR (due to Roundoff etc.)
exp(x), log(x), expm1(x) and log1p(x) are accurate to within
an
diff --git a/lib/libm/man/fabs.3 b/lib/libm/man/fabs.3
index 2684932eec0..3ef4a484cfc 100644
--- a/lib/libm/man/fabs.3
+++ b/lib/libm/man/fabs.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fabs.3,v 1.6 2000/03/02 00:29:49 todd Exp $
+.\" $OpenBSD: fabs.3,v 1.7 2003/02/27 01:07:43 jason Exp $
.\" Copyright (c) 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -49,14 +49,18 @@
.Sh DESCRIPTION
The
.Fn fabs
-and
-.Fn fabsf
-functions compute the absolute value of a floating-point number
+function computes the absolute value of a floating-point number
.Fa x .
+The
+.Fn fabsf
+function is a single precision version of
+.Fn fabs .
.Sh RETURN VALUES
The
.Fn fabs
-function returns the absolute value of
+and
+.Fn fabsf
+functions return the absolute value of
.Fa x .
.Sh SEE ALSO
.Xr abs 3 ,