summaryrefslogtreecommitdiff
path: root/62/CH1/EX1.9/ex_1_9.sce
blob: 15fbe2d957f33104beb9ca7a79c272e7551715fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//ex_9 to show that e^iwt is periodic with T=2*pi/W0
clear;
clc;
close;
t=0:1/100:10;
w0=1;
T=2*%pi/w0;
x=exp(%i*w0*t);
y=exp(%i*w0*(t+T));
if ceil(x)==ceil(y) then
    disp('e^iwt is periodic with T=2*pi/W0')
else
    disp('nonperiodic')
end