exp : exp « math.h « C Tutorial






ItemValue
Header filemath.h
Declarationfloat expf(float arg);
double exp(double arg);
long double expl(long double arg);
Returnreturns the natural logarithm e raised to the arg power.


#include <math.h>
  #include <stdio.h>

  int main(void)
  {

      printf("Value of e to the first: %f.", exp(1.0));
 
  }
Value of e to the first: 2.718282.








19.17.exp
19.17.1.exp