std::cbrt

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       cbrt( float arg );
(C++11 feature)
double      cbrt( double arg );
(C++11 feature)
long double cbrt( long double arg );
(C++11 feature)

Computes cubic root of arg.

[edit] Parameters

arg - floating point value

[edit] Return value

cubic root of arg.

Domain error occurs if arg is negative. NAN is returned in that case.

[edit] See also

sqrt
computes square root (x)
(function)
pow
raises a number to the given power (xy)
(function)