coth

Function coth 

Source
pub fn coth<S: ScalarAd>(x: S) -> S
Expand description

Primal coth.

ยงExamples

use chainrules::coth;

assert!((coth(0.5_f64) - 1.0 / 0.5_f64.tanh()).abs() < 1e-12);