Function acoth

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

§acoth(x)

Inverse Hyperbolic Function

The acoth function computes the inverse hyperbolic cotangent of a number (in radians).

§Equation

acoth(x) = (1.0 / x).atanh() = 0.5 * ln((x + 1.0) / (x - 1.0))

§Examples

use mathlab::math::{acoth, INF_F64 as inf};
assert_eq!(acoth(inf), 0.0);
assert_eq!(acoth(2.081283363933637), 0.523598775598299);
assert_eq!(acoth(1.003741873197321), 3.141592653589813);
assert_eq!(acoth(1.000006974709036), 6.283185307142813);

End Fun Doc