pub fn cos_vec(x: &[f64]) -> Vec<f64>
Expand description
§cos_vec(x)
Trigonometric Function
The cos_vec
function calculates the cosine value of each angle represented as a radian in the input iterator,
constructing a new vector from these results.
§Examples
use mathlab::math::{cos_vec, deg_to_rad_vec};
assert_eq!(cos_vec(&[0.0, 1e-10, 1.0471975512]), [1.0, 1.0, 0.5]);
End Fun Doc