PR/3405: Krister Walfridsson: Various typos; since we compile with POSIX
libm, we should not xref matherr(3), and describe the errno settings.
This commit is contained in:
parent
33d15ff158
commit
af726e9c88
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)acos.3 5.1 (Berkeley) 5/2/91
|
||||
.\" $Id: acos.3,v 1.6 1995/04/14 18:39:53 jtc Exp $
|
||||
.\" $Id: acos.3,v 1.7 1997/03/29 23:10:55 christos Exp $
|
||||
.\"
|
||||
.Dd May 2, 1991
|
||||
.Dt ACOS 3
|
||||
|
@ -54,8 +54,17 @@ 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"
|
||||
.\" POSIX_MODE
|
||||
set the global variable
|
||||
.Va errno
|
||||
to EDOM.
|
||||
.\" SYSV_MODE
|
||||
.\" call
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr sin 3 ,
|
||||
.Xr cos 3 ,
|
||||
|
@ -66,5 +75,5 @@ Exceptional cases are handled by
|
|||
.Xr sinh 3 ,
|
||||
.Xr cosh 3 ,
|
||||
.Xr tanh 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)acosh.3 5.2 (Berkeley) 5/6/91
|
||||
.\" $Id: acosh.3,v 1.7 1996/03/30 01:33:59 jtc Exp $
|
||||
.\" $Id: acosh.3,v 1.8 1997/03/29 23:10:56 christos Exp $
|
||||
.\"
|
||||
.Dd May 6, 1991
|
||||
.Dt ACOSH 3
|
||||
.Os BSD 4.3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm acosh
|
||||
.Nd inverse hyperbolic cosine function
|
||||
|
@ -54,14 +54,23 @@ of the real
|
|||
argument
|
||||
.Ar x .
|
||||
.Sh RETURN VALUES
|
||||
Exceptional cases are handled by
|
||||
.Xr matherr 3 .
|
||||
.\" POSIX_MODE
|
||||
If x is less than one,
|
||||
.Fn acosh "x"
|
||||
and
|
||||
.Fn acoshf "x"
|
||||
return NaN and set the global variable
|
||||
.Va errno
|
||||
to EDOM.
|
||||
.\" SVR4_MODE
|
||||
.\" call
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr asinh 3 ,
|
||||
.Xr atanh 3 ,
|
||||
.Xr exp 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn acosh
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)asin.3 5.1 (Berkeley) 5/2/91
|
||||
.\" $Id: asin.3,v 1.6 1995/04/14 18:39:56 jtc Exp $
|
||||
.\" $Id: asin.3,v 1.7 1997/03/29 23:10:57 christos Exp $
|
||||
.\"
|
||||
.Dd May 2, 1991
|
||||
.Dt ASIN 3
|
||||
|
@ -56,8 +56,17 @@ in the range
|
|||
.Bq -\*(Pi/2, +\*(Pi/2 .
|
||||
.Ek
|
||||
.Sh RETURN VALUES
|
||||
Exceptional cases are handled by
|
||||
.Xr matherr 3 .
|
||||
.\" POSIX_MODE
|
||||
If |x|>1,
|
||||
.Fn asin "x"
|
||||
and
|
||||
.Fn asinf "x"
|
||||
return NaN and set the global variable
|
||||
.Va errno
|
||||
to EDOM.
|
||||
.\" SYSV_MODE
|
||||
.\" call
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr acos 3 ,
|
||||
.Xr atan 3 ,
|
||||
|
@ -68,5 +77,5 @@ Exceptional cases are handled by
|
|||
.Xr sinh 3 ,
|
||||
.Xr tan 3 ,
|
||||
.Xr tanh 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)asinh.3 6.4 (Berkeley) 5/6/91
|
||||
.\" $Id: asinh.3,v 1.7 1996/03/30 01:34:00 jtc Exp $
|
||||
.\" $Id: asinh.3,v 1.8 1997/03/29 23:10:58 christos Exp $
|
||||
.\"
|
||||
.Dd May 6, 1991
|
||||
.Dt ASINH 3
|
||||
.Os BSD 4.3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm asinh
|
||||
.Nd inverse hyperbolic sine function
|
||||
|
@ -59,15 +59,16 @@ and
|
|||
.Fn asinhf
|
||||
functions return the inverse hyperbolic sine of
|
||||
.Ar x .
|
||||
.Sh RETURN VALUES
|
||||
Exceptional cases are handled by
|
||||
.Xr matherr 3 .
|
||||
.\" SYSV_MODE
|
||||
.\" .Sh RETURN VALUES
|
||||
.\" Exceptional cases are handled by
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr acosh 3 ,
|
||||
.Xr atanh 3 ,
|
||||
.Xr exp 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn asinh
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)atan.3 5.1 (Berkeley) 5/2/91
|
||||
.\" $Id: atan.3,v 1.6 1995/04/14 18:39:59 jtc Exp $
|
||||
.\" $Id: atan.3,v 1.7 1997/03/29 23:10:59 christos Exp $
|
||||
.\"
|
||||
.Dd May 2, 1991
|
||||
.Dt ATAN 3
|
||||
|
@ -55,9 +55,10 @@ in the range
|
|||
.Bk -words
|
||||
.Bq -\*(Pi/2 , +\*(Pi/2 .
|
||||
.Ek
|
||||
.Sh RETURN VALUES
|
||||
Exceptional cases are handled by
|
||||
.Xr matherr 3 .
|
||||
.\" SYSV_MODE
|
||||
.\" .Sh RETURN VALUES
|
||||
.\" Exceptional cases are handled by
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr acos 3 ,
|
||||
.Xr asin 3 ,
|
||||
|
@ -68,5 +69,5 @@ Exceptional cases are handled by
|
|||
.Xr sinh 3 ,
|
||||
.Xr tan 3 ,
|
||||
.Xr tanh 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)atanh.3 5.2 (Berkeley) 5/6/91
|
||||
.\" $Id: atanh.3,v 1.7 1996/03/30 01:34:02 jtc Exp $
|
||||
.\" $Id: atanh.3,v 1.8 1997/03/29 23:10:59 christos Exp $
|
||||
.\"
|
||||
.Dd May 6, 1991
|
||||
.Dt ATANH 3
|
||||
.Os BSD 4.3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm atanh
|
||||
.Nd inverse hyperbolic tangent function
|
||||
|
@ -54,14 +54,23 @@ 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"
|
||||
.\" POSIX_MODE
|
||||
return +inf, -inf or NaN, and sets the global variable
|
||||
.Va errno
|
||||
+to EDOM.
|
||||
.\" SYSV_MODE
|
||||
.\" call
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr acosh 3 ,
|
||||
.Xr asinh 3 ,
|
||||
.Xr exp 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn atanh
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)cosh.3 5.1 (Berkeley) 5/2/91
|
||||
.\" $Id: cosh.3,v 1.6 1995/04/14 18:40:04 jtc Exp $
|
||||
.\" $Id: cosh.3,v 1.7 1997/03/29 23:11:00 christos Exp $
|
||||
.\"
|
||||
.Dd May 2, 1991
|
||||
.Dt COSH 3
|
||||
|
@ -52,8 +52,17 @@ 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"
|
||||
.\" POSIX_MODE
|
||||
return Inf and sets the global variable
|
||||
.Va errno
|
||||
to ERANGE.
|
||||
.\" SYSV_MODE
|
||||
.\" call
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr acos 3 ,
|
||||
.Xr asin 3 ,
|
||||
|
@ -64,5 +73,5 @@ Exceptional conditions are handled by
|
|||
.Xr sinh 3 ,
|
||||
.Xr tan 3 ,
|
||||
.Xr tanh 3 ,
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)erf.3 6.4 (Berkeley) 4/20/91
|
||||
.\" $Id: erf.3,v 1.4 1995/04/14 18:40:06 jtc Exp $
|
||||
.\" $Id: erf.3,v 1.5 1997/03/29 23:11:01 christos Exp $
|
||||
.\"
|
||||
.Dd April 20, 1991
|
||||
.Dt ERF 3
|
||||
.Os BSD 4.3
|
||||
.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"
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)exp.3 6.12 (Berkeley) 7/31/91
|
||||
.\" $Id: exp.3,v 1.10 1996/03/30 01:34:03 jtc Exp $
|
||||
.\" $Id: exp.3,v 1.11 1997/03/29 23:11:02 christos 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
|
||||
|
@ -159,7 +159,8 @@ and
|
|||
.Fn pow
|
||||
detect if the computed value will overflow,
|
||||
set the global variable
|
||||
.Va errno to
|
||||
.Va errno
|
||||
to
|
||||
.Er ERANGE
|
||||
and cause a reserved operand fault on a
|
||||
.Tn VAX
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)hypot.3 6.7 (Berkeley) 5/6/91
|
||||
.\" $Id: hypot.3,v 1.4 1995/04/14 18:40:12 jtc Exp $
|
||||
.\" $Id: hypot.3,v 1.5 1997/03/29 23:11:03 christos Exp $
|
||||
.\"
|
||||
.Dd May 6, 1991
|
||||
.Dt HYPOT 3
|
||||
.Os BSD 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm hypot ,
|
||||
.Nm cabs
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)j0.3 6.7 (Berkeley) 4/19/91
|
||||
.\" $Id: j0.3,v 1.7 1996/03/30 01:34:04 jtc Exp $
|
||||
.\" $Id: j0.3,v 1.8 1997/03/29 23:11:04 christos Exp $
|
||||
.\"
|
||||
.Dd April 19, 1991
|
||||
.Dt J0 3
|
||||
.Os BSD 4
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm j0 ,
|
||||
.Nm j1 ,
|
||||
|
@ -125,23 +125,24 @@ 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
|
||||
the computed value is returned, otherwise
|
||||
the global
|
||||
variable
|
||||
.Va errno
|
||||
is set to
|
||||
.Er EDOM
|
||||
and a reserve operand fault is generated.
|
||||
.\" On the
|
||||
.\" .Tn VAX
|
||||
.\" and
|
||||
.\" .Tn Tahoe
|
||||
.\" architectures, a negative
|
||||
.\" .Fa x
|
||||
.\" value
|
||||
.\" results in an error.
|
||||
.Sh SEE ALSO
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
.Sh HISTORY
|
||||
This set of functions
|
||||
appeared in
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91
|
||||
.\" $Id: sqrt.3,v 1.4 1995/04/14 18:40:21 jtc Exp $
|
||||
.\" $Id: sqrt.3,v 1.5 1997/03/29 23:11:06 christos Exp $
|
||||
.\"
|
||||
.Dd May 6, 1991
|
||||
.Dt SQRT 3
|
||||
|
@ -65,11 +65,20 @@ 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"
|
||||
.\" POSIX_MODE
|
||||
set the global variable
|
||||
.Va errno
|
||||
to EDOM.
|
||||
.\" SYSV_MODE
|
||||
.\" call
|
||||
.\" .Xr matherr 3 .
|
||||
.Sh SEE ALSO
|
||||
.Xr math 3 ,
|
||||
.Xr matherr 3
|
||||
.Xr math 3
|
||||
.\" .Xr matherr 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Fn cbrt
|
||||
|
|
Loading…
Reference in New Issue