pub fn tand_rrule<S: ScalarAd>(x: S, cotangent: S) -> S
Reverse rule for tand.
tand
use chainrules::tand_rrule; let dy = tand_rrule(45.0_f64, 1.0); assert!((dy - 2.0 * std::f64::consts::PI / 180.0).abs() < 1e-12);