CBRTSection: Linux Programmer's Manual (3)
Index Return to Main Contents
NAMEcbrt, cbrtf, cbrtl - cube root function
#include <math.h> double cbrt(double x);
float cbrtf(float x);
long double cbrtl(long double x);
Link with -lm.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
DESCRIPTIONThe cbrt() function returns the (real) cube root of x. This function cannot fail; every representable real value has a representable real cube root.
RETURN VALUEThese functions return the cube root of x.
ERRORSNo errors occur.
CONFORMING TOC99, POSIX.1-2001.
SEE ALSOpow(3), sqrt(3)
COLOPHONThis page is part of release 3.21 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.