xref: /csrg-svn/lib/libm/common_source/sqrt.3 (revision 24378)
SQRT 3M "7 August 1985"
C 4
NAME
cbrt, sqrt - cube root, square root
SYNOPSIS
 #include <math.h> 

double cbrt(x) double x;

double sqrt(x) double x;

DESCRIPTION
Cbrt(x) returns the cube root of x.

Sqrt(x) returns the square root of x.

SEE ALSO
intro(3M), infnan(3M)
DIAGNOSTICS
On a VAX, sqrt(negative) returns the reserved operand and sets errno to EDOM .
ERROR (due to Roundoff etc.)
Cbrt is accurate to within 0.7 \*(ups.

Sqrt on a VAX is accurate to within 0.501 \*(ups.

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 Unit in the Last Place carried.

AUTHOR
W. Kahan