summaryrefslogtreecommitdiff
path: root/1535/CH4/EX4.2/Ch04Ex2.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH4/EX4.2/Ch04Ex2.sci
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 '1535/CH4/EX4.2/Ch04Ex2.sci')
-rwxr-xr-x1535/CH4/EX4.2/Ch04Ex2.sci18
1 files changed, 18 insertions, 0 deletions
diff --git a/1535/CH4/EX4.2/Ch04Ex2.sci b/1535/CH4/EX4.2/Ch04Ex2.sci
new file mode 100755
index 000000000..2c88b7691
--- /dev/null
+++ b/1535/CH4/EX4.2/Ch04Ex2.sci
@@ -0,0 +1,18 @@
+// Scilab Code Ex4.2 : Page-91 (2010)
+D = 0.04; // Diameter of circular aperture, cm
+f = 20; // Focal length of convex lens, cm
+lambda = 6000e-008; // Wavelength of light used, m
+// We have sin(theta) = 1.22*lambda/D = theta, for small theta, such that
+// For first dark ring
+theta = 1.22*lambda/D; // The half angular width at central maximum, rad
+r1 = theta*f; // The half width of central maximum for first dark ring, cm
+// We have sin(theta) = 5.136*lambda/(%pi*D) = theta, for small theta, such that
+// For second dark ring
+theta = 5.136*lambda/(%pi*D); // The half angular width at central maximum, rad
+r2 = theta*f; // The half width of central maximum for second dark ring, cm
+printf("\nThe radius of first dark ring = %4.2e cm", r1);
+printf("\nThe radius of second dark ring = %4.1e cm", r2);
+
+// Result
+// The radius of first dark ring = 3.66e-002 cm
+// The radius of second dark ring = 4.90e-002 cm \ No newline at end of file