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 --- 2321/CH6/EX6.2.2/EX6_2_2.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2321/CH6/EX6.2.2/EX6_2_2.sce (limited to '2321/CH6/EX6.2.2/EX6_2_2.sce') diff --git a/2321/CH6/EX6.2.2/EX6_2_2.sce b/2321/CH6/EX6.2.2/EX6_2_2.sce new file mode 100755 index 000000000..3c64174f5 --- /dev/null +++ b/2321/CH6/EX6.2.2/EX6_2_2.sce @@ -0,0 +1,16 @@ +//Example No. 6.2.2 +clc; +clear; +close; +format('v',5); +n=2;//(No. of point source) +//E=E0*{exp(%i*(%pi/4+si/2))-exp(-%i*(%pi/4+si/2))} as exp(%i*theta)+exp(-%i*theta)=2*cos(theta) +//E=2*E0*cos(%pi/4+si/2); +//si=Beta*d*cosd(fi)=2*%pi*cosd(fi) +//En=cos(%pi/4+Beta*d*cosd(%pi/4)); But 2*E0=1 +fi=[0 30 60 90 120 150 180 210 240 270 300 330];//degree(angle) +En=cos(%pi/4+%pi/4*cosd(fi));//Normalized field +disp("Different values of fi : "); +disp(string(fi)); +disp("Corresponding normalized field is : "); +disp(string(abs(En))); -- cgit