Expm1 Function


  • It returns the natural logarithm e raised to the arg power minus 1 .
  • It can also be expressed as ( e^arg-1) .

  • Syntax:

    float expm1f(float arg);
    
    double expm1(double arg);
    
    long double expm1l(long double arg);

    Example:

    #include <math.h>
    #include <stdio.h>
    
      int main()
      {
         printf("Value of e to the first: %f.", expm1(1.0));
    
         printf("Value of e to the second: %f.", expm1(2.0));     
    
      return 0;
    
      }
       
    Back