summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.6/Ch03Ex6.sce
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.6/Ch03Ex6.sce
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.6/Ch03Ex6.sce')
-rwxr-xr-x1847/CH3/EX3.6/Ch03Ex6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1847/CH3/EX3.6/Ch03Ex6.sce b/1847/CH3/EX3.6/Ch03Ex6.sce
new file mode 100755
index 000000000..f9ee32936
--- /dev/null
+++ b/1847/CH3/EX3.6/Ch03Ex6.sce
@@ -0,0 +1,14 @@
+// Scilab Code Ex3.6:: Page-3.23 (2009)
+clc; clear;
+lambda = 5000e-010; // Wavelength of light used, cm
+n = 1; // Order of diffraction
+x = 5e-003; // Position of first minima on either sides of central maximum, m
+D = 2.5; // Distance of screen from the narrow slir, m
+sin_theta = x/sqrt(x^2+D^2); // Sine of angle theta, rad
+// For a single slit Fraunhofer diffraction, a*sin(theta) = n*lambda, solving for a
+a = n*lambda/sin_theta; // Width of the slit, m
+
+printf("\nThe Width of the slit = %3.1e m", a);
+
+// Result
+// The Width of the slit = 2.5e-004 m