cbrt, sqrt - cube root, square root
Cbrt(x) returns the cube root of x.
Sqrt(x) returns the square root of x.
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 ulps.
Sqrt on a VAX is accurate to within 0.501 ulps.
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.
SEE ALSO math(3M), infnan(3M)AUTHOR
4.3 Berkeley Distribution May 12, 1986 SQRT(3M)
Check Out this Related Man Page
SQRT(3) BSD Library Functions Manual SQRT(3)NAME
cbrt, cbrtf, cbrtl, sqrt, sqrtf, sqrtl -- cube root and square root functions
Math Library (libm, -lm)
cbrtl(long double x);
sqrtl(long double x);
The cbrt(), cbrtf(), and cbrtl() functions compute the cube root of x.
The sqrt(), sqrtf(), and sqrtl() functions compute the non-negative square root of x.
The cbrt(), cbrtf(), and cbrtl() functions return the requested cube root. The sqrt(), sqrtf(), and sqrtl() functions return the requested
square root unless an error occurs. An attempt to take the sqrt() of negative x raises an invalid exception and causes an NaN to be returned
(except that the square root of -0 is valid and equal to -0.)
SEE ALSO fenv(3), math(3)STANDARDS
The cbrt(), cbrtf(), cbrtl(), sqrt(), sqrtf(), and sqrtl() functions conform to ISO/IEC 9899:1999 (``ISO C99'').
The cbrt() function appeared in 4.3BSD. The sqrtl() function appeared in FreeBSD 8.0. The cbrtl() function appeared in FreeBSD 9.0.
BSD March 5, 2011 BSD