From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 62/CH1/EX1.9/ex_1_9.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 62/CH1/EX1.9/ex_1_9.sce (limited to '62/CH1/EX1.9') diff --git a/62/CH1/EX1.9/ex_1_9.sce b/62/CH1/EX1.9/ex_1_9.sce new file mode 100755 index 000000000..15fbe2d95 --- /dev/null +++ b/62/CH1/EX1.9/ex_1_9.sce @@ -0,0 +1,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 \ No newline at end of file -- cgit