Skip to main content

cbrt

Function cbrt 

Source
pub fn cbrt<T: Real>(x: T) -> T
Expand description

Cube root of x.

ยงExamples

use mathverse_core::ops::cbrt;

assert!((cbrt(27.0_f64) - 3.0).abs() < 1e-12);
assert!((cbrt(8.0_f64) - 2.0).abs() < 1e-12);