Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <math.h>
double cbrt(double x);
#define _ISOC99_SOURCE
#include <math.h>
float cbrtf(float x);
long double cbrtl(long double x);
#define _TR1_C99
#include <math.h>
float cbrt(float x);
long double cbrt(long double x);
Function | Hex | IEEE |
---|---|---|
cbrt | X | X |
cbrtf | X | X |
cbrtl | X | X |
The cbrt functions return x to the 1/3 power.
cbrt() does not fail.