函数原型:
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;
}
时间: 2024-10-10 08:10:15