summaryrefslogtreecommitdiff
path: root/1949/CH2/EX2.5
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.5
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.5')
-rwxr-xr-x1949/CH2/EX2.5/2_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1949/CH2/EX2.5/2_5.sce b/1949/CH2/EX2.5/2_5.sce
new file mode 100755
index 000000000..ca162c0b6
--- /dev/null
+++ b/1949/CH2/EX2.5/2_5.sce
@@ -0,0 +1,15 @@
+//Chapter-2,Example 2_5,Page 2-31
+clc()
+
+//Given Data:
+m=1 //order
+lam=6.56*10^-7 //Wavelength of red light
+theta=18.25*%pi/180 //angle of diffraction
+W=2*10^-2 //width of grating
+
+//Calculations:
+
+//We know, (a+b)*sin(theta)=m*lam
+N=sin(theta)/(m*lam) //N-number of lines per m, N=1/(a+b)
+Tn=N*W //Total number of lines on grating
+printf('Total number of lines on grating is = %.0f ',Tn)