pub fn inv<S: ScalarAd>(x: S) -> S
Primal inv.
inv
use chainrules::inv; assert_eq!(inv(4.0_f64), 0.25);