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