|
NAMEcbrt , cbrtf ,
cbrtl , sqrt ,
sqrtf , sqrtl —
cube root and square root functions
LIBRARYMath Library (libm, -lm)SYNOPSIS#include <math.h>
double
float
long double
double
float
long double
DESCRIPTIONThecbrt (), cbrtf (), and
cbrtl () functions compute the cube root of
x.
The RETURN VALUESThecbrt (), 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 ALSOfenv(3), math(3)STANDARDSThecbrt (), cbrtf (),
cbrtl (), sqrt (),
sqrtf (), and sqrtl () functions
conform to ISO/IEC 9899:1999
(“ISO C99”).
HISTORYThecbrt () function appeared in
4.3BSD. The sqrt () function
appeared in Version 2 AT&T UNIX.
sqrtl () function appeared in FreeBSD
8.0. The cbrtl () function appeared in
FreeBSD 9.0.
Visit the GSP FreeBSD Man Page Interface. |