summaryrefslogtreecommitdiff
path: root/2708/CH2/EX2.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2708/CH2/EX2.8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2708/CH2/EX2.8')
-rwxr-xr-x2708/CH2/EX2.8/ex_2_8.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2708/CH2/EX2.8/ex_2_8.sce b/2708/CH2/EX2.8/ex_2_8.sce
new file mode 100755
index 000000000..60ac942c6
--- /dev/null
+++ b/2708/CH2/EX2.8/ex_2_8.sce
@@ -0,0 +1,26 @@
+//Example 2.8 //angular separtion
+clc;
+clear;
+//part a
+c=1/5000;//grating element
+w1=5890D-8;// in first case first wavelength used in cm
+n=2;//order of spectrum
+theta=asin((n*w1)/c);//angular separton in radian
+theta=theta*180/%pi;//to convert in degree
+disp(theta,"angular width in degree")
+//part b
+w2=5896D-8;// in second case second wavelength used in cm
+n=2;//order of spectrum
+theta1=asin((n*w2)/c);//angular separton in radian
+theta1=theta1*180/%pi;//to convert in degree
+disp(theta1,"angular width in degree")
+a=theta1-theta;//angular separation in degree
+disp(a,"angular separation in degree")
+//part c
+w=5893D-8;// mid wavelength
+dw=w2-w1;// change in wavelength
+n=2;//order of spectrum
+N=w/(dw*n);//no. of lines in grating
+N=floor(N);//N should be integer
+disp(N,"no. of lines in grating")
+