|
|
1.1 root 1: .\" Copyright (c) 1985 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)sqrt.3 6.2 (Berkeley) 5/12/86
6: .\"
7: .TH SQRT 3M "May 12, 1986"
8: .UC 6
9: .ds up \fIulp\fR
10: .SH NAME
11: cbrt, sqrt \- cube root, square root
12: .SH SYNOPSIS
13: .nf
14: .B #include <math.h>
15: .PP
16: .B double cbrt(x)
17: .B double x;
18: .PP
19: .B double sqrt(x)
20: .B double x;
21: .fi
22: .SH DESCRIPTION
23: Cbrt(x) returns the cube root of x.
24: .PP
25: Sqrt(x) returns the square root of x.
26: .SH DIAGNOSTICS
27: On a VAX, sqrt(negative)
28: returns the reserved operand and sets \fIerrno\fR to EDOM .
29: .SH ERROR (due to Roundoff etc.)
30: Cbrt is accurate to within 0.7 \*(ups.
31: .br
32: Sqrt on a VAX is accurate to within 0.501 \*(ups.
33: .br
34: Sqrt on a machine that conforms to IEEE 754 is correctly rounded
35: in accordance with the rounding mode in force; the error is less than
36: half an \*(up in the default mode (round\-to\-nearest).
37: An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried.
38: .SH SEE ALSO
39: math(3M), infnan(3M)
40: .SH AUTHOR
41: W. Kahan
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.