Function tan_deg_vec

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

§tan_deg_vec(x)

Trigonometric Function

The tan_deg_vec function calculates the tangent value of each angle represented in degrees in the input iterator, constructing a new vector from these results.

§Examples

use mathlab::math::{tan_deg_vec, INF_F64 as inf};
assert_eq!(tan_deg_vec(&[0.0, 30.0, 45.0, 60.0, 90.0]), [0.0, 0.5773502692, 1.0, 1.7320508076, -inf]);

End Fun Doc