Commit | Line | Data |
---|---|---|
cd30a7d2 | 1 | .TH SQRT 3M "7 August 1985" |
44887795 | 2 | .UC 4 |
cd30a7d2 | 3 | .ds up \fIulp\fR |
44887795 MAN |
4 | .SH NAME |
5 | cbrt, 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 | 17 | Cbrt(x) returns the cube root of x. |
44887795 | 18 | .PP |
cd30a7d2 | 19 | Sqrt(x) returns the square root of x. |
44887795 | 20 | .SH SEE ALSO |
cd30a7d2 | 21 | intro(3M), infnan(3M) |
44887795 | 22 | .SH DIAGNOSTICS |
cd30a7d2 MAN |
23 | On a VAX, sqrt(negative) |
24 | returns the reserved operand and sets \fIerrno\fR to EDOM . | |
25 | .SH ERROR (due to Roundoff etc.) | |
26 | Cbrt is accurate to within 0.7 \*(ups. | |
27 | .br | |
28 | Sqrt on a VAX is accurate to within 0.501 \*(ups. | |
29 | .br | |
30 | Sqrt on a machine that conforms to IEEE 754 is correctly rounded | |
31 | in accordance with the rounding mode in force; the error is less than | |
32 | half an \*(up in the default mode (round\-to\-nearest). | |
33 | An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried. | |
44887795 MAN |
34 | .SH AUTHOR |
35 | W. Kahan |