pub fn nrt_vec_vec(x: &[f64], n: &[f64]) -> Vec<f64>
Expand description
§nrt_vec_vec(x, n)
Operation Function
The nrt_vec_vec
function calculates the n-th
root of each element in the input vector x
, using the corresponding power
from the input vector n
, and returns the results as a vector of floating-point numbers.
§Examples
use mathlab::math::{nrt, nrt_vec_vec};
assert_eq!(nrt(27.0, 3.0), 3.0);
assert_eq!(nrt_vec_vec(&[1.0, 4.0, 27.0, 9.0], &[1.0, 2.0, 3.0, 2.0]), [1.0, 2.0, 3.0, 3.0]);
End Fun Doc