CBRT(3) Library Functions Manual CBRT(3)

cbrtcube root function

#include <math.h>

double
cbrt(double x);

long double
cbrtl(long double x);

float
cbrtf(float x);

The () function computes the cube root of x.

cbrt(±0) returns ±0.

(±infinity) returns ±infinity.

math(3), sqrt(3)

The cbrt() function conforms to ISO/IEC 9899:2011.

December 11, 2006 macOS 15.2