Function acos_vec

Source
pub fn acos_vec(x: &[f64]) -> Vec<f64>
Expand description

§acos_vec(x)

Inverse Trigonometric Function

The acos_vec function computes the inverse cosine of each number in the input slice, returning a new vector of angles whose cosine is equal to the corresponding input value, in radians.

§Examples

use mathlab::math::acos_vec;
assert_eq!(acos_vec(&[0.0, 0.5, 0.7071067812, 0.8660254038, 1.0]), [1.5707963268, 1.0471975512, 0.7853981634, 0.5235987756, 0.0]);

End Fun Doc