Function acot_vec

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

§acot_vec(x)

Inverse Trigonometric Function

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

§Examples

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

End Fun Doc