[−][src]Function nikisas::cot
pub fn cot(x: f32) -> f32
Computes the cotangent of a number in radians.
Notes
The input domain is limited to approximately [-2.1e+9, 2.1e+9] due to
implementation details (see tan
).
Examples
use nikisas::{cot, consts::PI}; assert_eq!(cot(0.25 * PI), 1.0);
Implementations details
It is simply computed as 1 / tan(x) using tan
routine.