首页 > 代码库 > exp函数

exp函数

函数原型: 
double exp (double x); float exp (float x); long double exp (long double x); double exp (T x); // additional overloads for integral types
示例代码:

/* exp example */
#include <stdio.h>      /* printf */
#include <math.h>       /* exp */

int main ()
{
  double param, result;
  param = 5.0;
  result = exp (param);
  printf ("The exponential value of %f is %f.\n", param, result );
  return 0;
}