Exponential Function


It returns the exponent "e" raised to the argumented power.

Syntax:

float expf(float arg);

double exp(double arg);

long double expl(long double arg);

Example:

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

  int main()

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

     printf("Value of e to the second: %f.", exp(2.0));

  return 0;

  }   
 
Back