This commit is contained in:
Michael Kerrisk 2008-08-04 16:00:58 +00:00
parent 19153d9948
commit efe294cb80
40 changed files with 78 additions and 78 deletions

View File

@ -77,13 +77,13 @@ is +1,
If
.I x
is positive infinity or negative infinity,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
If
.I x
is outside the range [\-1,\ 1],
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
.SH ERRORS
See

View File

@ -85,7 +85,7 @@ is positive infinity, positive infinity is returned.
If
.I x
is less than 1,
a "domain error" occurs,
a domain error occurs,
and the functions return a NaN.
.SH ERRORS
See

View File

@ -79,7 +79,7 @@ is +0 (\-0),
If
.I x
outside the range [\-1,\ 1],
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
.\"
.\" POSIX.1-2001 documents an optional range error for subnormal x;

View File

@ -81,7 +81,7 @@ is +0 (\-0), +0 (\-0) is returned.
If
.I x
is +1 or \-1,
a "pole error" occurs,
a pole error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -92,7 +92,7 @@ respectively, with the mathematically correct sign.
If the absolute value of
.I x
is greater than 1,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
.\"
.\" POSIX.1-2001 documents an optional range error for subnormal x;

View File

@ -67,7 +67,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or infinite,
\fIx\fP itself is returned.
.SH ERRORS
No errors occur.
POSIX.1-2001 documents a "range error" for overflows, but see NOTES.
POSIX.1-2001 documents a range error for overflows, but see NOTES.
.SH "CONFORMING TO"
C99, POSIX.1-2001.
The variant returning

View File

@ -72,7 +72,7 @@ is a NaN, a NaN is returned.
If
.I x
is positive infinity or negative infinity,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
.SH ERRORS
See

View File

@ -85,7 +85,7 @@ is positive infinity or negative infinity,
positive infinity is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.RB + HUGE_VAL ,
.RB + HUGE_VALF ,

View File

@ -87,7 +87,7 @@ is positive infinity (negative infinity),
If
.I x
is subnormal,
a "range error" occurs,
a range error occurs,
and the return value is 2*x/sqrt(pi).
.SH ERRORS
See

View File

@ -86,7 +86,7 @@ If the function result underflows but produces a representable
(i.e., subnormal) value,
.\" e.g., erfc(27) on x86-32
that value is returned, and
a "range error" occurs.
a range error occurs.
.SH ERRORS
See
.BR math_error (7)

View File

@ -83,11 +83,11 @@ is negative infinity,
+0 is returned.
If the result underflows,
a "range error" occurs,
a range error occurs,
and zero is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.RB + HUGE_VAL ,
.RB + HUGE_VALF ,

View File

@ -92,7 +92,7 @@ If
.I x
is negative infinity, \-1 is returned.
If the result overflows, a "range error" occurs,
If the result overflows, a range error occurs,
and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,

View File

@ -41,7 +41,7 @@ or
is a NaN, a NaN is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,

View File

@ -66,7 +66,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or an infinity,
\fIx\fP itself is returned.
.SH ERRORS
No errors occur.
POSIX.1-2001 documents a "range error" for overflows, but see NOTES.
POSIX.1-2001 documents a range error for overflows, but see NOTES.
.SH "CONFORMING TO"
C99, POSIX.1-2001.
The variant returning

View File

@ -75,7 +75,7 @@ times
is an exact infinity, and
.I z
is an infinity with the opposite sign,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
If one of
@ -85,7 +85,7 @@ or
is an infinity, the other is 0, and
.I z
is not a NaN,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If one of
@ -96,7 +96,7 @@ is an infinity, and the other is 0, and
.I z
is a NaN,
.\" POSIX.1 makes the domain error optional for this case.
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If
@ -109,11 +109,11 @@ is a NaN,
a NaN is returned.
If the result overflows,
a "range error" occurs, and
a range error occurs, and
an infinity with the correct sign is returned.
If the result underflows,
a "range error" occurs, and
a range error occurs, and
a signed 0 is returned.
.SH ERRORS
See

View File

@ -82,13 +82,13 @@ is a NaN, a NaN is returned.
If
.I x
is an infinity,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If
.I y
is zero,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If

View File

@ -100,7 +100,7 @@ and the other argument is not an infinity,
a NaN is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -111,7 +111,7 @@ respectively.
If both arguments are subnormal, and the result is subnormal,
.\" Actually, could the result not be subnormal if both arguments
.\" are subnormal? I think not -- mtk, Jul 2008
a "range error" occurs,
a range error occurs,
and the correct result is returned.
.SH ERRORS
See

View File

@ -68,15 +68,15 @@ as a signed integer.
If
.I x
is zero, then a "domain error" occurs, and the functions return
.\" the POSIX.1 spec for logb() says logb() gives "pole error" for this
.\" case, but for ilogb() it says "domain error".
is zero, then a domain error occurs, and the functions return
.\" the POSIX.1 spec for logb() says logb() gives pole error for this
.\" case, but for ilogb() it says domain error.
.BR FP_ILOGB0 .
.\" glibc: The numeric value is either `INT_MIN' or `-INT_MAX'.
If
.I x
is a NaN, then a "domain error" occurs, and the functions return
is a NaN, then a domain error occurs, and the functions return
.BR FP_ILOGBNAN .
.\" glibc: The numeric value is either `INT_MIN' or `INT_MAX'.
.\" On i386, FP_ILOGB0 and FP_ILOGBNAN have the same value.
@ -84,7 +84,7 @@ is a NaN, then a "domain error" occurs, and the functions return
If
.I x
is negative infinity or positive infinity, then
a "domain error" occurs, and the functions return
a domain error occurs, and the functions return
.BR INT_MAX .
.\"
.\" POSIX.1-2001 also says:

View File

@ -114,7 +114,7 @@ If
.I x
is too large in magnitude,
or the result underflows,
a "range error" occurs,
a range error occurs,
and the return value is 0.
.SH ERRORS
See

View File

@ -84,11 +84,11 @@ is positive infinity (negative infinity),
positive infinity (negative infinity) is returned.
If the result underflows,
an "range error" occurs,
an range error occurs,
and zero is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,

View File

@ -92,7 +92,7 @@ positive infinity is returned.
If
.I x
is a non-positive integer,
a "pole error" occurs,
a pole error occurs,
and the functions return
.RB + HUGE_VAL ,
.RB + HUGE_VALF ,
@ -101,7 +101,7 @@ or
respectively.
If the result overflows,
a "range error" occurs,
a range error occurs,
.\" e.g., lgamma(DBL_MAX)
and the functions return
.BR HUGE_VAL ,

View File

@ -83,7 +83,7 @@ positive infinity is returned.
If
.I x
is zero,
then a "pole error" occurs, and the functions return
then a pole error occurs, and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,
or
@ -93,7 +93,7 @@ respectively.
If
.I x
is negative (including negative infinity), then
a "domain error" occurs, and a NaN (not a number) is returned.
a domain error occurs, and a NaN (not a number) is returned.
.SH ERRORS
See
.BR math_error (7)

View File

@ -80,7 +80,7 @@ is positive infinity, positive infinity is returned.
If
.I x
is \-1, a "pole error" occurs,
is \-1, a pole error occurs,
and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,
@ -91,7 +91,7 @@ respectively.
If
.I x
is less than \-1 (including negative infinity),
a "domain error" occurs,
a domain error occurs,
and a NaN (not a number) is returned.
.\" POSIX.1 specifies a possible range error if x is subnormal
.\" glibc 2.8 doesn't do this

View File

@ -89,7 +89,7 @@ a NaN is returned.
If
.I x
is zero, then a "pole error" occurs, and the functions return
is zero, then a pole error occurs, and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,
or

View File

@ -75,7 +75,7 @@ or the rounded value is too large to be stored in a
in the case of the
.B ll*
functions)
then a "domain error" occurs, and the return value is unspecified.
then a domain error occurs, and the return value is unspecified.
.\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
.SH ERRORS
See

View File

@ -76,7 +76,7 @@ or the rounded value is too large to be stored in a
in the case of the
.B ll*
functions)
then a "domain error" occurs, and the return value is unspecified.
then a domain error occurs, and the return value is unspecified.
.\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
.SH ERRORS
See

View File

@ -97,7 +97,7 @@ If
is finite,
.\" e.g., DBL_MAX
and the result would overflow,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -110,7 +110,7 @@ If
is not equal to
.IR y ,
and the correct function result would be subnormal, zero, or underflow,
a "range error" occurs,
a range error occurs,
and either the correct value (if it can be represented),
or 0.0, is returned.
.SH ERRORS

View File

@ -72,13 +72,13 @@ If
.I x
is a finite value less than 0, and
.I y
is a finite non-integer, a "domain error" occurs,
.\" The "domain error" is generated at least as far back as glibc 2.4
is a finite non-integer, a domain error occurs,
.\" The domain error is generated at least as far back as glibc 2.4
and a NaN is returned.
If the result overflows,
a "range error" occurs,
.\" The "range error" is generated at least as far back as glibc 2.4
a range error occurs,
.\" The range error is generated at least as far back as glibc 2.4
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -87,7 +87,7 @@ or
respectively, with the mathematically correct sign.
If result underflows, and is not representable,
a "range error" occurs,
a range error occurs,
and 0.0 is returned.
.\" POSIX.1 does not specify the sign of the zero,
.\" but http://sources.redhat.com/bugzilla/show_bug.cgi?id=2678
@ -221,7 +221,7 @@ is +0 or -0,
and
.I y
is an odd integer less than 0,
a "pole error" occurs and
a pole error occurs and
.BR HUGE_VAL ,
.BR HUGE_VALF ,
or
@ -236,8 +236,8 @@ is +0 or -0,
and
.I y
is less than 0 and not an odd integer,
a "pole error" occurs and
.\" The "pole error" is generated at least as far back as glibc 2.4
a pole error occurs and
.\" The pole error is generated at least as far back as glibc 2.4
.RB + HUGE_VAL ,
.RB + HUGE_VALF ,
or

View File

@ -117,7 +117,7 @@ is an infinity,
and
.I y
is not a NaN,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If
@ -128,7 +128,7 @@ and
.I x
is not a NaN,
.\" Interestingly, remquo(3) does not have the same problem.
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
.SH ERRORS
See

View File

@ -77,7 +77,7 @@ is an infinity,
and
.I y
is not a NaN,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If
@ -86,7 +86,7 @@ is zero,
and
.I x
is not a NaN,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
.SH ERRORS
See

View File

@ -92,7 +92,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or infinite,
\fIx\fP itself is returned.
.SH ERRORS
No errors occur.
POSIX.1-2001 documents a "range error" for overflows, but see NOTES.
POSIX.1-2001 documents a range error for overflows, but see NOTES.
.SH "CONFORMING TO"
C99, POSIX.1-2001.
.SH NOTES

View File

@ -68,7 +68,7 @@ If \fIx\fP is integral, +0, \-0, NaN, or infinite,
\fIx\fP itself is returned.
.SH ERRORS
No errors occur.
POSIX.1-2001 documents a "range error" for overflows, but see NOTES.
POSIX.1-2001 documents a range error for overflows, but see NOTES.
.SH "CONFORMING TO"
C99, POSIX.1-2001.
.SH NOTES

View File

@ -97,7 +97,7 @@ If
is zero, and
.I exp
is positive infinity,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If
@ -106,11 +106,11 @@ is an infinity,
and
.I exp
is negative infinity,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -120,7 +120,7 @@ respectively, with a sign the same as
.IR x .
If the result underflows,
a "range error" occurs,
a range error occurs,
and the functions return zero, with a sign the same as
.IR x .
.SH ERRORS

View File

@ -97,7 +97,7 @@ If
is +0 (\-0), +0 (\-0) is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -107,7 +107,7 @@ respectively, with a sign the same as
.IR x .
If the result underflows,
a "range error" occurs,
a range error occurs,
and the functions return zero, with a sign the same as
.IR x .
.SH ERRORS

View File

@ -72,7 +72,7 @@ is a NaN, a NaN is returned.
If
.I x
is positive infinity or negative infinity,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
.\"
.\" POSIX.1 allows an optional range error for subnormal x

View File

@ -38,7 +38,7 @@ and
If
.I x
is positive infinity or negative infinity,
a "domain error" occurs, and
a domain error occurs, and
a NaN is returned in
.I *sin
and

View File

@ -85,7 +85,7 @@ is positive infinity (negative infinity),
positive infinity (negative infinity) is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,

View File

@ -79,7 +79,7 @@ is positive infinity, positive infinity is returned.
If
.I x
is less than \-0,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
.SH ERRORS
See

View File

@ -73,11 +73,11 @@ is a NaN, a NaN is returned.
If
.I x
is positive infinity or negative infinity,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
If the correct result would overflow,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,

View File

@ -64,11 +64,11 @@ is positive infinity, positive infinity is returned.
If
.I x
is a negative integer, or is negative infinity,
a "domain error" occurs,
a domain error occurs,
and a NaN is returned.
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,
@ -77,13 +77,13 @@ or
respectively, with the correct mathematical sign.
If the result underflows,
a "range error" occurs,
a range error occurs,
and the functions return 0, with the correct mathematical sign.
If
.I x
is -0 or +0,
a "pole error" occurs,
a pole error occurs,
and the functions return
.BR HUGE_VAL ,
.BR HUGE_VALF ,

View File

@ -116,7 +116,7 @@ is a NaN, a NaN is returned.
If
.I x
is negative,
a "domain error" occurs,
a domain error occurs,
and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,
@ -128,7 +128,7 @@ respectively.
If
.I x
is 0.0,
a "pole error" occurs,
a pole error occurs,
and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,
@ -137,11 +137,11 @@ or
respectively.
If the result underflows,
a "range error" occurs,
a range error occurs,
and the functions return 0.0
If the result overflows,
a "range error" occurs,
a range error occurs,
and the functions return
.RB - HUGE_VAL ,
.RB - HUGE_VALF ,