Function root

Source
pub fn root(radicand: f64, index: Spanned<i64>) -> SourceResult<f64>
Expand description

Calculates the real nth root of a number.

If the number is negative, then n must be odd.

#calc.root(16.0, 4) \
#calc.root(27.0, 3)