diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-05 04:18:51 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-05 04:18:51 +0000 |
commit | 5e39276c5d66fe715d7ea5195c3e11be47b7f5dd (patch) | |
tree | d2208bc21b7fe993d14dac3af53c323078072f76 /lib/libm | |
parent | d5d94a2d04eabdd6255a9555e29b493fc7164cac (diff) |
From NetBSD PR/3405: Krister Walfridsson <cato@ulysses.df.lth.se>: Various
typos; since we compile with POSIX libm, we should not xref matherr(3), and
describe the errno settings.
Diffstat (limited to 'lib/libm')
-rw-r--r-- | lib/libm/man/acos.3 | 14 | ||||
-rw-r--r-- | lib/libm/man/acosh.3 | 16 | ||||
-rw-r--r-- | lib/libm/man/asin.3 | 14 | ||||
-rw-r--r-- | lib/libm/man/asinh.3 | 10 | ||||
-rw-r--r-- | lib/libm/man/atan.3 | 8 | ||||
-rw-r--r-- | lib/libm/man/atanh.3 | 16 | ||||
-rw-r--r-- | lib/libm/man/cosh.3 | 14 | ||||
-rw-r--r-- | lib/libm/man/erf.3 | 8 | ||||
-rw-r--r-- | lib/libm/man/exp.3 | 6 | ||||
-rw-r--r-- | lib/libm/man/hypot.3 | 4 | ||||
-rw-r--r-- | lib/libm/man/ieee_test.3 | 4 | ||||
-rw-r--r-- | lib/libm/man/j0.3 | 23 | ||||
-rw-r--r-- | lib/libm/man/sqrt.3 | 14 |
13 files changed, 77 insertions, 74 deletions
diff --git a/lib/libm/man/acos.3 b/lib/libm/man/acos.3 index 241fe62fd1f..795c3b61ab0 100644 --- a/lib/libm/man/acos.3 +++ b/lib/libm/man/acos.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)acos.3 5.1 (Berkeley) 5/2/91 -.\" $Id: acos.3,v 1.2 1995/10/28 00:56:45 deraadt Exp $ +.\" $Id: acos.3,v 1.3 1997/04/05 04:18:45 tholo Exp $ .\" .Dd May 2, 1991 .Dt ACOS 3 @@ -54,8 +54,13 @@ functions compute the principal value of the arc cosine of in the range .Bq 0 , \*(Pi . .Sh RETURN VALUES -Exceptional cases are handled by -.Xr matherr 3 . +If |x|>1, +.Fn acos "x" +and +.Fn acosf "x" +sets the global variable +.Va errno +to EDOM. .Sh SEE ALSO .Xr sin 3 , .Xr cos 3 , @@ -66,5 +71,4 @@ Exceptional cases are handled by .Xr sinh 3 , .Xr cosh 3 , .Xr tanh 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 diff --git a/lib/libm/man/acosh.3 b/lib/libm/man/acosh.3 index 2d6120fcdb3..d06b05a8689 100644 --- a/lib/libm/man/acosh.3 +++ b/lib/libm/man/acosh.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)acosh.3 5.2 (Berkeley) 5/6/91 -.\" $Id: acosh.3,v 1.2 1995/10/28 00:56:45 deraadt Exp $ +.\" $Id: acosh.3,v 1.3 1997/04/05 04:18:45 tholo Exp $ .\" .Dd May 6, 1991 .Dt ACOSH 3 -.Os BSD 4.3 +.Os .Sh NAME .Nm acosh .Nd inverse hyperbolic cosine function @@ -54,15 +54,19 @@ of the real argument .Ar x . .Sh RETURN VALUES -Exceptional cases are handled by -.Xr matherr 3 . +If x is less than one, +.Fn acosh "x" +and +.Fn acoshf "x" +returns NaN and sets the global variable +.Va errno +to EDOM. .Sh SEE ALSO .Xr asinh 3 , .Xr atanh 3 , .Xr exp 3 , .Xr infnan 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 .Sh HISTORY The .Fn acosh diff --git a/lib/libm/man/asin.3 b/lib/libm/man/asin.3 index a940770ea82..cacb3506e71 100644 --- a/lib/libm/man/asin.3 +++ b/lib/libm/man/asin.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)asin.3 5.1 (Berkeley) 5/2/91 -.\" $Id: asin.3,v 1.2 1995/10/28 00:56:46 deraadt Exp $ +.\" $Id: asin.3,v 1.3 1997/04/05 04:18:46 tholo Exp $ .\" .Dd May 2, 1991 .Dt ASIN 3 @@ -56,8 +56,13 @@ in the range .Bq -\*(Pi/2, +\*(Pi/2 . .Ek .Sh RETURN VALUES -Exceptional cases are handled by -.Xr matherr 3 . +If |x|>1, +.Fn asin "x" +and +.Fn asinf "x" +returns NaN and sets the global variable +.Va errno +to EDOM. .Sh SEE ALSO .Xr acos 3 , .Xr atan 3 , @@ -68,5 +73,4 @@ Exceptional cases are handled by .Xr sinh 3 , .Xr tan 3 , .Xr tanh 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 diff --git a/lib/libm/man/asinh.3 b/lib/libm/man/asinh.3 index 29e19b0f536..a3baac4b8ee 100644 --- a/lib/libm/man/asinh.3 +++ b/lib/libm/man/asinh.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)asinh.3 6.4 (Berkeley) 5/6/91 -.\" $Id: asinh.3,v 1.2 1995/10/28 00:56:47 deraadt Exp $ +.\" $Id: asinh.3,v 1.3 1997/04/05 04:18:46 tholo Exp $ .\" .Dd May 6, 1991 .Dt ASINH 3 -.Os BSD 4.3 +.Os .Sh NAME .Nm asinh .Nd inverse hyperbolic sine function @@ -59,16 +59,12 @@ and .Fn asinhf functions return the inverse hyperbolic sine of .Ar x . -.Sh RETURN VALUES -Exceptional cases are handled by -.Xr matherr 3 . .Sh SEE ALSO .Xr acosh 3 , .Xr atanh 3 , .Xr exp 3 , .Xr infnan 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 .Sh HISTORY The .Fn asinh diff --git a/lib/libm/man/atan.3 b/lib/libm/man/atan.3 index 228f748af85..f7a34bf2166 100644 --- a/lib/libm/man/atan.3 +++ b/lib/libm/man/atan.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)atan.3 5.1 (Berkeley) 5/2/91 -.\" $Id: atan.3,v 1.2 1995/10/28 00:56:47 deraadt Exp $ +.\" $Id: atan.3,v 1.3 1997/04/05 04:18:47 tholo Exp $ .\" .Dd May 2, 1991 .Dt ATAN 3 @@ -55,9 +55,6 @@ in the range .Bk -words .Bq -\*(Pi/2 , +\*(Pi/2 . .Ek -.Sh RETURN VALUES -Exceptional cases are handled by -.Xr matherr 3 . .Sh SEE ALSO .Xr acos 3 , .Xr asin 3 , @@ -68,5 +65,4 @@ Exceptional cases are handled by .Xr sinh 3 , .Xr tan 3 , .Xr tanh 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 diff --git a/lib/libm/man/atanh.3 b/lib/libm/man/atanh.3 index 535252e45eb..822e2912b79 100644 --- a/lib/libm/man/atanh.3 +++ b/lib/libm/man/atanh.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)atanh.3 5.2 (Berkeley) 5/6/91 -.\" $Id: atanh.3,v 1.2 1995/10/28 00:56:49 deraadt Exp $ +.\" $Id: atanh.3,v 1.3 1997/04/05 04:18:47 tholo Exp $ .\" .Dd May 6, 1991 .Dt ATANH 3 -.Os BSD 4.3 +.Os .Sh NAME .Nm atanh .Nd inverse hyperbolic tangent function @@ -54,15 +54,19 @@ of the real argument .Ar x . .Sh RETURN VALUES -Exceptional conditions are handled by -.Xr matherr 3 . +If |x|>=1, +.Fn atanh "x" +and +.Fn atanhf "x" +returns +inf, -inf or NaN, and sets the global variable +.Va errno +to EDOM. .Sh SEE ALSO .Xr acosh 3 , .Xr asinh 3 , .Xr exp 3 , .Xr infnan 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 .Sh HISTORY The .Fn atanh diff --git a/lib/libm/man/cosh.3 b/lib/libm/man/cosh.3 index a336911aa40..9f45c06dd21 100644 --- a/lib/libm/man/cosh.3 +++ b/lib/libm/man/cosh.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91 -.\" $Id: cosh.3,v 1.2 1995/10/28 00:56:51 deraadt Exp $ +.\" $Id: cosh.3,v 1.3 1997/04/05 04:18:47 tholo Exp $ .\" .Dd May 2, 1991 .Dt COSH 3 @@ -52,8 +52,13 @@ and functions compute the hyperbolic cosine of .Fa x . .Sh RETURN VALUES -Exceptional conditions are handled by -.Xr matherr 3 . +If the magnitude of x is too large, +.Fn cosh "x" +and +.Fn coshf "x" +returns Inf and sets the global variable +.Va errno +to ERANGE. .Sh SEE ALSO .Xr acos 3 , .Xr asin 3 , @@ -64,5 +69,4 @@ Exceptional conditions are handled by .Xr sinh 3 , .Xr tan 3 , .Xr tanh 3 , -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 diff --git a/lib/libm/man/erf.3 b/lib/libm/man/erf.3 index 329afb55ca9..1895c925bf0 100644 --- a/lib/libm/man/erf.3 +++ b/lib/libm/man/erf.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)erf.3 6.4 (Berkeley) 4/20/91 -.\" $Id: erf.3,v 1.2 1995/10/28 00:56:51 deraadt Exp $ +.\" $Id: erf.3,v 1.3 1997/04/05 04:18:48 tholo Exp $ .\" .Dd April 20, 1991 -.Dt ERF 3 -.Os BSD 4.3 +.Dt +.Os .Sh NAME .Nm erf , .Nm erfc @@ -43,7 +43,7 @@ .Fd #include <math.h> .Ft double .Fn erf "double x" -.Fn float +.Ft float .Fn erff "float x" .Ft double .Fn erfc "double x" diff --git a/lib/libm/man/exp.3 b/lib/libm/man/exp.3 index fa8f4b96826..b31f79b7f39 100644 --- a/lib/libm/man/exp.3 +++ b/lib/libm/man/exp.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91 -.\" $Id: exp.3,v 1.2 1995/10/28 00:56:52 deraadt Exp $ +.\" $Id: exp.3,v 1.3 1997/04/05 04:18:48 tholo Exp $ .\" .Dd July 31, 1991 .Dt EXP 3 -.Os BSD 4 +.Os .Sh NAME .Nm exp , .Nm expm1 , @@ -68,7 +68,7 @@ .Ft double .Fn pow "double x" "double y" .Ft float -.Fn powf "float x" float y" +.Fn powf "float x" "float y" .Sh DESCRIPTION The .Fn exp diff --git a/lib/libm/man/hypot.3 b/lib/libm/man/hypot.3 index 1d00672b3d6..56b59244a29 100644 --- a/lib/libm/man/hypot.3 +++ b/lib/libm/man/hypot.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91 -.\" $Id: hypot.3,v 1.2 1995/10/28 00:56:55 deraadt Exp $ +.\" $Id: hypot.3,v 1.3 1997/04/05 04:18:49 tholo Exp $ .\" .Dd May 6, 1991 .Dt HYPOT 3 -.Os BSD 4 +.Os .Sh NAME .Nm hypot , .Nm cabs diff --git a/lib/libm/man/ieee_test.3 b/lib/libm/man/ieee_test.3 index 8c0faf89dc0..5235052d8ee 100644 --- a/lib/libm/man/ieee_test.3 +++ b/lib/libm/man/ieee_test.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91 -.\" $Id: ieee_test.3,v 1.2 1995/10/28 00:56:56 deraadt Exp $ +.\" $Id: ieee_test.3,v 1.3 1997/04/05 04:18:49 tholo Exp $ .\" .Dd March 10, 1994 .Dt IEEE_TEST 3 @@ -53,7 +53,7 @@ .Ft double .Fn significand "double x" .Ft float -.Fn significand "float x" +.Fn significandf "float x" .Sh DESCRIPTION These functions allow users to test conformance to .St -ieee754 . diff --git a/lib/libm/man/j0.3 b/lib/libm/man/j0.3 index 09047d856e0..a8fd0406049 100644 --- a/lib/libm/man/j0.3 +++ b/lib/libm/man/j0.3 @@ -30,11 +30,11 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)j0.3 6.7 (Berkeley) 4/19/91 -.\" $Id: j0.3,v 1.2 1995/10/28 00:56:57 deraadt Exp $ +.\" $Id: j0.3,v 1.3 1997/04/05 04:18:50 tholo Exp $ .\" .Dd April 19, 1991 .Dt J0 3 -.Os BSD 4 +.Os .Sh NAME .Nm j0 , .Nm j1 , @@ -125,24 +125,11 @@ value (expressed as a double). .Sh RETURN VALUES If these functions are successful, -the computed value is returned. On the -.Tn VAX -and -.Tn Tahoe -architectures, -a negative -.Fa x -value -results in an error; the global -variable +the computed value is returned, otherwise the the global variable .Va errno -is set to -.Er EDOM -and a reserve operand fault is generated. +is set to EDOM or ERANGE. .Sh SEE ALSO -.Xr math 3 , -.Xr matherr 3 , -.Xr infnan 3 +.Xr math 3 .Sh HISTORY This set of functions appeared in diff --git a/lib/libm/man/sqrt.3 b/lib/libm/man/sqrt.3 index 95ee61327a8..8bd7ac029b2 100644 --- a/lib/libm/man/sqrt.3 +++ b/lib/libm/man/sqrt.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91 -.\" $Id: sqrt.3,v 1.2 1995/10/28 00:57:01 deraadt Exp $ +.\" $Id: sqrt.3,v 1.3 1997/04/05 04:18:50 tholo Exp $ .\" .Dd May 6, 1991 .Dt SQRT 3 @@ -65,11 +65,15 @@ and functions compute the non-negative square root of x. .Sh RETURN VALUES -Exceptional conditions are handled by -.Xr matherr 3 . +If x is negative, +.Fn sqrt "x" +and +.Fn sqrtf "x" +sets the global variable +.Va errno +to EDOM. .Sh SEE ALSO -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 .Sh HISTORY The .Fn cbrt |