summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.18
diff options
context:
space:
mode:
Diffstat (limited to '1847/CH3/EX3.18')
-rwxr-xr-x1847/CH3/EX3.18/Ch03Ex18.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1847/CH3/EX3.18/Ch03Ex18.sce b/1847/CH3/EX3.18/Ch03Ex18.sce
new file mode 100755
index 000000000..715748598
--- /dev/null
+++ b/1847/CH3/EX3.18/Ch03Ex18.sce
@@ -0,0 +1,17 @@
+// Scilab Code Ex3.18:: Page-3.30 (2009)
+clc; clear;
+a = 0.019e-003; // Width of each slit, m
+b = 2.0e-004; // Width of opacity between two slits, m
+lambda = 5000e-010; // Wavelengh of light used, m
+D = 0.6; // Distance between slit and the screen, m
+// As angular separation, theta = x/D = lambda/(a+b), solving for x
+x = D*lambda/(a+b); // Fringe spacing on the screen, m
+// As half angular separation, theta1 = x1/D = lambda/(2*(a+b)), solving for x1
+x1 = D*lambda/(2*(a+b)); // Distance between central maxima and first minima, m
+
+printf("\nThe fringe spacing on the screen = %4.2f mm", x/1e-003);
+printf("\nThe distance between central maxima and first minima = %4.2f mm", x1/1e-003);
+
+// Result
+// The fringe spacing on the screen = 1.37 mm
+// The distance between central maxima and first minima = 0.68 mm