www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/EulersIdentityExample.m

    %% Euler's Identity
% Euler's identity is the equality $e^{i \pi} +1=0$.

% Copyright 2015 The MathWorks, Inc.


%%
% Compute the value of $e^{i \pi}$.
Y = exp(1i*pi)