Exponential Function
It returns 2 raised to the argumented power.
Syntax:
float exp2f(float arg); double exp2(double arg); long double exp2l(long double arg);
Example:
#include <math.h> #include <stdio.h> int main() { printf("Value of e to the first: %f.", exp2(1.0)); printf("Value of e to the second: %f.", exp2(2.0)); return 0; }Back