summaryrefslogtreecommitdiff
path: root/1949/CH2/EX2.15.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1949/CH2/EX2.15.2
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 '1949/CH2/EX2.15.2')
-rwxr-xr-x1949/CH2/EX2.15.2/2_15_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1949/CH2/EX2.15.2/2_15_2.sce b/1949/CH2/EX2.15.2/2_15_2.sce
new file mode 100755
index 000000000..3342202c2
--- /dev/null
+++ b/1949/CH2/EX2.15.2/2_15_2.sce
@@ -0,0 +1,14 @@
+//Chapter-2,Example 2_15_2,Page 2-55
+clc()
+
+//Given Data:
+lam1=5.4*10^-7 //Wavelength of light
+lam2=4.05*10^-7 //Wavelength of light
+theta=30*%pi/180 //angle of diffraction
+
+//Calculations:
+//We know, (a+b)*sin(theta)=n*lam
+//n*lam1=(n+1)*lam2, we get
+n=3
+N=sin(theta)/(n*lam1)*10^-2 //Number of lines per m= 1/(a+b)*10^-2
+printf('Number of lines per cm is = %.0f \n',N)