fix bugs in drem when second arg is inf or NaN
[unix-history] / usr / src / lib / libm / common_source / sqrt.3
index 153e87f..b8b9268 100644 (file)
@@ -1,5 +1,11 @@
-.TH SQRT 3M  "7 August 1985"
-.UC 4
+.\" Copyright (c) 1985 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)sqrt.3      6.2 (Berkeley) %G%
+.\"
+.TH SQRT 3M  ""
+.UC 6
 .ds up \fIulp\fR
 .SH NAME
 cbrt, sqrt \- cube root, square root
 .ds up \fIulp\fR
 .SH NAME
 cbrt, sqrt \- cube root, square root
@@ -17,8 +23,6 @@ cbrt, sqrt \- cube root, square root
 Cbrt(x) returns the cube root of x.
 .PP
 Sqrt(x) returns the square root of x.
 Cbrt(x) returns the cube root of x.
 .PP
 Sqrt(x) returns the square root of x.
-.SH SEE ALSO
-intro(3M), infnan(3M)
 .SH DIAGNOSTICS
 On a VAX, sqrt(negative)
 returns the reserved operand and sets \fIerrno\fR to EDOM .
 .SH DIAGNOSTICS
 On a VAX, sqrt(negative)
 returns the reserved operand and sets \fIerrno\fR to EDOM .
@@ -31,5 +35,7 @@ Sqrt on a machine that conforms to IEEE 754 is correctly rounded
 in accordance with the rounding mode in force; the error is less than
 half an \*(up in the default mode (round\-to\-nearest).
 An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried.
 in accordance with the rounding mode in force; the error is less than
 half an \*(up in the default mode (round\-to\-nearest).
 An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried.
+.SH SEE ALSO
+math(3M), infnan(3M)
 .SH AUTHOR
 W. Kahan
 .SH AUTHOR
 W. Kahan