#include <iostream>
#include <cmath>
using namespace std;
int main()
{
cout << "exp2(-1) = " << exp2(-1) << endl;
cout << "exp2(1) = " << exp2(1) << endl;
cout << "exp2(0) = " << exp2(0) << endl;
cout << "exp2(-0) = " << exp2(-0) << endl;
cout << "exp2(5) = " << exp2(5) << endl;
cout << "exp2(0.5) = " << exp2(0.5) << endl;
cout << "exp2(-INFINITY) = " << exp2(-INFINITY) << endl;
cout << "exp2(100) = " << exp2(100) << endl;
cout << "exp2(1024) = " << exp2(1024) << endl;
return 0;
}
// inf - Numerical result out of range
/*
run:
exp2(-1) = 0.5
exp2(1) = 2
exp2(0) = 1
exp2(-0) = 1
exp2(5) = 32
exp2(0.5) = 1.41421
exp2(-INFINITY) = 0
exp2(100) = 1.26765e+30
exp2(1024) = inf
*/