Function name : exp
Header file : <math.h>
Function prototype : double exp(double x);
Function : Find the base e raised to the x power
Parameters : double x is the index to be operated on
Return value : Returns the base e raised to the power of x
Note : The natural number e is a constant 2.71828
Program example : Find the x power of the base e and output the result
#include<stdio.h>#include<math.h>intmain(void){doubleresult;doublex=4.0;result=exp(x);printf('e'raisedtothepowerof%lf(e^%lf)=%lf n,x,x,result);return0;}
Running results:
'e'raisedtothepowerof4.000000(e^4.000000)=54.598150