cbrt

Calculates the cube root of x.

Special Values
xcbrt(x)invalid?
±0.0±0.0no
NaNNaNyes
±∞±∞no
@trusted nothrow @nogc
real
cbrt
(
real x
)

Examples

import std.math.operations : feqrel;

assert(cbrt(1.0).feqrel(1.0) > 16);
assert(cbrt(27.0).feqrel(3.0) > 16);
assert(cbrt(15.625).feqrel(2.5) > 16);

Meta