NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS (due to Roundoff) | ATTRIBUTES | SEE ALSO | STANDARDS
#include <math.h>double cbrt(double x);
The cbrt function computes the cube root of x .
The sqrt function computes the non-negative square root of x.
The cbrt function returns the requested cube root. The sqrt function returns the requested square root unless an error occurs. An attempt to take the sqrt of a negative value of x causes an error; in this event, errno is set to EDOM and a system-dependent notification is performed.
The cbrt function is accurate to within 0.7 ulps .
On a machine that conforms to IEEE 754 sqrt is correctly rounded in accordance with the rounding mode in force; the error is less than half a ulp in the default mode (round-to-nearest). A ulp is one Unit in the Last Place carried.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The sqrt function conforms to ANSI-C.
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERRORS (due to Roundoff) | ATTRIBUTES | SEE ALSO | STANDARDS