EXP

The EXP function returns the natural exponential function of Expression .

Calling Sequence

Result = EXP( Expression )

Arguments

Expression

The expression to be evaluated. If Expression is double-precision floating or complex, the result is of the same type. All other types are converted to single-precision floating-point and yield floating-point results. The definition of the exponential function for complex arguments is:

EXP( x ) = COMPLEX( eR cos I , eR sin I )

where:

R = real part of x , and I = imaginary part of x . If Expression is an array, the result has the same structure, with each element containing the result for the corresponding element of Expression .

Example

Plot a Gaussian with a 1/e width of 10 and a center of 50 by entering:

PLOT, EXP(-(FINDGEN(100)/10. - 5.0)^2)

See Also

ALOG