Calculate exponential: how to use exp : Exp « Math « C / ANSI-C






Calculate exponential: how to use exp


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

int main ()
{
  double p, result;
 
  p = 5;
 
  result = exp (p);
 
  printf ("Exponential of %lf = %lf\n", p, result );
 
  return 0;
}



           
       








Related examples in the same category

1. Get floating-point value from mantissa and exponent
2.Get mantissa and exponent of floating-point value: how to use frexp
3.Get floating-point value from mantissa and exponent: how to use ldexp