pub fn divi_vec_vec(x: &[f64], y: &[f64]) -> Vec<f64>
Expand description
§divi_vec_vec(x, y)
Operation Function
The divi_vec_vec
function divides corresponding elements of vectors x
and y
using the divi function,
then returns a new vector containing their results.
§Examples
use mathlab::math::{divi, divi_vec_vec, INF_F64};
assert_eq!(divi(0.1, 0.2), 0.5);
assert_eq!(divi_vec_vec(&[0.0, 0.1, 0.2, 0.3], &[0.3, 0.2, 0.1, 0.0]), [0.0, 0.5, 2.0, INF_F64]);
End Fun Doc