pub fn sub_rrule<S: ScalarAd>(cotangent: S) -> (S, S)Expand description
Reverse rule for sub.
Returns cotangents with respect to (x, y).
ยงExamples
use chainrules::sub_rrule;
let (dx, dy) = sub_rrule(2.0_f64);
assert_eq!(dx, 2.0_f64);
assert_eq!(dy, -2.0_f64);