tand_rrule

Function tand_rrule 

Source
pub fn tand_rrule<S: ScalarAd>(x: S, cotangent: S) -> S
Expand description

Reverse rule for tand.

ยงExamples

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);