summaryrefslogtreecommitdiff
path: root/2708/CH2/EX2.19
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.19
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.19')
-rwxr-xr-x2708/CH2/EX2.19/ex_2_19.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/2708/CH2/EX2.19/ex_2_19.sce b/2708/CH2/EX2.19/ex_2_19.sce
new file mode 100755
index 000000000..017e567a2
--- /dev/null
+++ b/2708/CH2/EX2.19/ex_2_19.sce
@@ -0,0 +1,30 @@
+//Example 2.19 //Angular sepration
+clc;
+clear;
+//given data
+n=1;// order of spectrum
+wi=.5;// width of grating in cm
+N=2500;//total no. of lines
+c=wi/N;//grating element
+w1=589D-7;// first wavelength of sodium in cm
+//part a
+theta1=asin(n*w1/c)//angular width in radian
+theta1=theta1*180/%pi;//angular width in degree
+disp(theta1,"angular width in degree")
+w2=5896D-8;//second wavelength of sodium in cm
+//part b
+theta2=asin(n*w2/c)//angular width in radian
+theta2=theta2*180/%pi;//angular width in degree
+disp(theta2,"angular width in degree")
+theta=theta2-theta1;//angular sepration degree
+disp(theta,"angular sepration in degree")
+w=(w1+w2)/2;//mid wavelength
+dw=6D-8;// change of wavelength in cm
+n=1;//order of spectrum
+N=w/(n*dw);//no. of lines will appear
+N=floor(N);// N should be integer
+if(1/c>N)
+ disp(N,"No. of lines will appear")
+else
+ disp("they can not be seen differently ")
+end