pub fn coth<S: ScalarAd>(x: S) -> S
Primal coth.
coth
use chainrules::coth; assert!((coth(0.5_f64) - 1.0 / 0.5_f64.tanh()).abs() < 1e-12);