Function atan_vec

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

§atan_vec(x)

Inverse Trigonometric Function

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

§Examples

use mathlab::math::{atan_vec, INF_F64 as inf};
assert_eq!(atan_vec(&[0.0, 0.5773502692, 1.0, 1.7320508076, inf]), [0.0, 0.5235987756, 0.7853981634, 1.0471975512, 1.5707963268]);

End Fun Doc