csch

Function csch 

Source
pub fn csch(x: f64) -> f64
Expand description

§csch(x)

Hyperbolic Function

The csch function computes the hyperbolic cosecant of a number (in radians).

§Equation

csch(x) = 2.0 / (exp(x) - exp(-x))

§Examples

use mathlab::math::{csch, INF_F64 as inf};
assert_eq!(csch(0.523598775598299), 1.825305574687952);
assert_eq!(csch(3.141592653589793), 0.086589537530047);
assert_eq!(csch(6.283185307179586), 0.003734898488286);
assert_eq!(csch(inf), 0.0);

End Fun Doc