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