diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2321/CH6/EX6.2.2/EX6_2_2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2321/CH6/EX6.2.2/EX6_2_2.sce')
-rwxr-xr-x | 2321/CH6/EX6.2.2/EX6_2_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
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)));
|