exp2

Function exp2 

Source
pub fn exp2<S: ScalarAd>(x: S) -> S
Expand description

Primal 2^x.

ยงExamples

use chainrules::exp2;

assert!((exp2(3.0_f64) - 8.0).abs() < 1e-12);