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