exp

Computes the exponential function of the argument

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Mathematical Computation

Syntax

  #include <math.h>  
   
  double exp  (  
     double   x);
  

Parameters

x
(IN) Specifies the argument whose exponential function is to be computed.

Return Values

The exp function returns the exponential value. When the argument is outside the permissible range, errno is set and matherr is called.

Remarks

The exp function computes the exponential function of x. A range error occurs if the magnitude of x is too large.

See Also

log, matherr

Example

  #include <math.h>  
  #include <stdio.h>  
   
  main ()  
  {  
     printf ("%f\n", exp (.5) );  
  }
  

produces the following:

  1.648721