summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH3/EX3.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 '1847/CH3/EX3.8')
-rwxr-xr-x1847/CH3/EX3.8/Ch03Ex8.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1847/CH3/EX3.8/Ch03Ex8.sce b/1847/CH3/EX3.8/Ch03Ex8.sce
new file mode 100755
index 000000000..a75278475
--- /dev/null
+++ b/1847/CH3/EX3.8/Ch03Ex8.sce
@@ -0,0 +1,18 @@
+// Scilab Code Ex3.8:: Page-3.23 (2009)
+clc; clear;
+lambda = 5000e-010; // Wavelength of light used, m
+a = 0.7e-002; // Width of the slit, m
+f = 0.5; // Focal length of the lens, m
+n = 1; // Order of diffraction
+// For minima, a*sind(theta_n) = n*lambda
+// Also theta_n = n*lambda/a = x1/f, solving for x1
+x1 = f*n*lambda/a; // Position of first minima, cm
+// For secondary maxima, a*sind(theta_n) = (2*n+1)*lambda/2
+// Also theta_n = 3*lambda/(2*a) = x2/f, solving for x2
+n = 1; // Order of diffraction for first secondary minima
+x2 = 3*f*lambda/(2*a); // Position of first secondary maxima, cm
+
+printf("\nThe distance between first minima and the next minima from the axis = %4.2e cm", x2-x1);
+
+// Result
+// The distance between first minima and the next minima from the axis = 1.79e-005 cm