Description: | Computes an exponential value. | ||
Class: | Elemental function; Generic | ||
Arguments: | X must be of type real or complex. | ||
Results: | The result type is the same as X. The value of the result is ex. If X is of type complex, its imaginary part is regarded as a value in radians. |
Specific Name | Argument Type | Result Type |
---|---|---|
EXP | REAL(4) | REAL(4) |
DEXP | REAL(8) | REAL(8) |
QEXP | REAL(16) | REAL(16) |
CEXP 1 | COMPLEX(4) | COMPLEX(4) |
CDEXP 2 | COMPLEX(8) | COMPLEX(8) |
CQEXP | COMPLEX(16) | COMPLEX(16) |
1 The setting of compiler options specifying
real size can affect CEXP.
2 This function can also be specified as ZEXP. |
Examples
EXP (2.0) has the value 7.389056.
EXP (1.3) has the value 3.669297.