FUNCTION REFERENCE

exp

Exponential.

Exponential.

Syntax

exp(X)

Returns e raised to each element.

Complex input gives exp(x)*(cos(y) + i*sin(y)).

Example

exp(0)   % 1

Example

exp(1i*pi)   % -1 + 0i

Differences from MATLAB: double, logical and char 2-D arrays only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.