Function spinoso_math::cbrt[][src]

#[must_use]pub fn cbrt(value: f64) -> f64

Returns the cube root of the given value.

Domain: (-INFINITY, INFINITY)

Codomain: (-INFINITY, INFINITY)

Examples

use spinoso_math as math;
assert!((math::cbrt(-9.0) - (-2.080083823051904)).abs() < f64::EPSILON);
assert!((math::cbrt(9.0) - 2.080083823051904).abs() < f64::EPSILON);