pub fn pow<S: ScalarAd>(x: S, exponent: S) -> S
Primal pow(x, exponent).
pow(x, exponent)
use chainrules::pow; assert_eq!(pow(2.0_f64, 3.0_f64), 8.0);