exp
double  exp ( double x );
math.h
  cplusplus.com  

Calculate exponential.
  Returns the exponential value of parameter x.

Parameters.

x
Floating point value.

Return Value.
  Exponential of x.

Portability.
  Defined in ANSI-C.
  ANSI-C++ adds float and double overloaded versions of this function, with the same bahavior but being both, parameter and result, of one of these types.

Example.

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

main ()
{
  double param, result;
  param = 5;
  result = exp (param);
  printf ("Exponential of %lf is %lf\n", param, result );
  return 0;
}
Output:
Exponential of 5.000000 is 148.413159

See also.
  frexp, ldexp, log, log10, pow, sqrt


© The C++ Resources Network, 2000