exp

For each element of x, returns e^x.

Syntax

R = exp(x)

Inputs

x
Type: double | complex
Dimension: scalar | vector | matrix

Outputs

R
The returned values.
Type: double | complex
Dimension: scalar | vector | matrix.

Examples

Scalar input:

R = exp(1)
R = 2.71828

Matrix input:

R = exp([1,-2,3])
R = [ 2.71828 0.135335 20.0855 ]