This function is compatible with the following targets:
|
|
#include <math.h>
double exp(double x);
float expf(float);
long double expl(long double);Parameters:
Parameters for this function are:
exp() returns ex, where e is the natural logarithm base value.
A range error may occur for larger numbers.
See Also: exp() example:#include <math.h>
#include <stdio.h>
int main(void)
{
double x = 4.0;
printf("The natural logarithm base e raised to the\n");
printf("power of %f is %f.\n", x, exp(x));
return 0;
}
Output:
The natural logarithm base e raised to the
power of 4.000000 is 54.598150.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000