ref: 4cf6f39af2db7e9c5985ff80cc20a8b7b8567a31 dir: /libnpe/exp2.c/
#include <math.h> #include "_npe.h" double exp2(double x) { static double ln2c = 0.0; if(ln2c == 0.0) ln2c = log(2.0); return exp(x*ln2c); }