pub fn pow_num_vec(x: f64, y: &[f64]) -> Vec<f64>
Expand description
§pow_num_vec(x, y)
Operation Function
The pow_num_vec
raises each element in a slice y
of floats to the power of a float x
,
returning a new vector containing the results.
§Examples
use mathlab::math::{pow, pow_num_vec, INF_F64};
assert_eq!(pow(0.0, 1.0), 0.0);
assert_eq!(pow(2.0 , -3.0), 0.125);
assert_eq!(pow_num_vec(2.0, &[-3.0, 0.0, 4.0, INF_F64]), [0.125, 1.0, 16.0, INF_F64]);
End Fun Doc