Skip to Main Content Skip to Search
Product Documentation

exp - Exponential

Syntax

Y = exp(X)

Description

Y = exp(X) returns the exponential for each element of X. exp operates element-wise on arrays. For complex x + i * y, exp returns the complex exponential ez = ex(cos y + i sin y). Use expm for matrix exponentials.

Examples

Find the value of e:

y=exp(i*pi)

returns

y =

  -1.0000 + 0.0000i

See Also

expm | log

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS