NAME
cbrt, cbrtf, cbrtl - cube root function SYNOPSIS
#include
double cbrt(double x); float cbrtf(float x); long double cbrtl(long double x); Link with -lm. Feature Test Macro Requirements for glibc (see featuretestmacros(7)): cbrt(): BSDSOURCE || SVIDSOURCE || XOPENSOURCE >= 500 || XOPENSOURCE && XOPENSOURCEEXTENDED || ISOC99SOURCE || POSIXCSOURCE >= 200112L;
or cc -std=c99 cbrtf(), cbrtl(): BSDSOURCE || SVIDSOURCE || XOPENSOURCE >= 600 || ISOC99SOURCE || POSIXCSOUCE >= 200112L;
or cc -std=c99 DESCRIPTION The cbrt() function returns the (real) cube root of x. This function cannot fail; every representable real value has a representable real cube root. RETURN VALUE These functions return the cube root of x.
If x is +0, -0, positive infinity, negative infinity, or NaN, x is returned. ERRORS No errors occur. ATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ┌─────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├─────────────────────────┼───────────────┼─────────┤
│cbrt(), cbrtf(), cbrtl() │ Thread safety │ MT-Safe │ └─────────────────────────┴───────────────┴─────────┘ CONFORMING TO
C99, POSIX.1-2001. SEE ALSO pow(3), sqrt(3) COLOPHON
This page is part of release 3.53 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/.
GNU 2010-09-20 CBRT(3)