pub fn cot(x: f64) -> f64
Expand description
§cot(x)
Trigonometric Function
The cot
function computes the cotangent of a number (in radians).
§Examples
use mathlab::math::{cot, INF_F64 as inf};
assert_eq!(cot(0.0), inf);
assert_eq!(cot(1e-10), 1e+10);
assert_eq!(cot(1e-10), 10000000000.0);
assert_eq!(cot(0.5235987756), 1.7320508076);
assert_eq!(cot(0.7853981634), 1.0);
assert_eq!(cot(1.0471975512), 0.5773502692);
assert_eq!(cot(1.5707963268), 0.0);
assert_eq!(cot(3.1415926536), inf);
assert_eq!(cot(4.7123889804), 0.0);
assert_eq!(cot(6.2831853072), inf);
End Fun Doc