SQRT
Section: Mathematical Library (3M)
Updated: August 1, 1992
Index
Return to Main Contents
NAME
sqrt, cbrt - square root, cube root
SYNOPSIS
#include <math.h>
double sqrt(double x);
(ALSO AVAILABLE IN BSD)
double cbrt(double x);
DESCRIPTION
Sqrt(x)
returns the square root of x.
Cbrt(x)
returns the square root of x.
Cbrt
is not neither ANSI- nor POSIX-compliant.
ERROR (due to roundoff, etc.)
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 ulp in the default mode (round-to-nearest).
An ulp is one Unit in the Last Place carried.
Cbrt
is accurate to within 0.7
ulps.
SEE ALSO
math(3M)
Index
- NAME
-
- SYNOPSIS
-
- (ALSO AVAILABLE IN BSD)
-
- DESCRIPTION
-
- ERROR (due to roundoff, etc.)
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 17:22:10 GMT, March 25, 2025