date and time created 85/08/21 15:33:50 by miriam
[unix-history] / usr / src / lib / libm / common_source / sqrt.3
CommitLineData
cd30a7d2 1.TH SQRT 3M "7 August 1985"
44887795 2.UC 4
cd30a7d2 3.ds up \fIulp\fR
44887795
MAN
4.SH NAME
5cbrt, sqrt \- cube root, square root
6.SH SYNOPSIS
7.nf
8.B #include <math.h>
9.PP
10.B double cbrt(x)
11.B double x;
12.PP
13.B double sqrt(x)
14.B double x;
15.fi
16.SH DESCRIPTION
cd30a7d2 17Cbrt(x) returns the cube root of x.
44887795 18.PP
cd30a7d2 19Sqrt(x) returns the square root of x.
44887795 20.SH SEE ALSO
cd30a7d2 21intro(3M), infnan(3M)
44887795 22.SH DIAGNOSTICS
cd30a7d2
MAN
23On a VAX, sqrt(negative)
24returns the reserved operand and sets \fIerrno\fR to EDOM .
25.SH ERROR (due to Roundoff etc.)
26Cbrt is accurate to within 0.7 \*(ups.
27.br
28Sqrt on a VAX is accurate to within 0.501 \*(ups.
29.br
30Sqrt on a machine that conforms to IEEE 754 is correctly rounded
31in accordance with the rounding mode in force; the error is less than
32half an \*(up in the default mode (round\-to\-nearest).
33An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried.
44887795
MAN
34.SH AUTHOR
35W. Kahan