pub fn powi<S: ScalarAd>(x: S, exponent: i32) -> S
Primal powi.
powi
use chainrules::powi; assert_eq!(powi(2.0_f64, 4), 16.0);