summaryrefslogtreecommitdiff
path: root/1271/CH2/EX2.17
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH2/EX2.17
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 '1271/CH2/EX2.17')
-rwxr-xr-x1271/CH2/EX2.17/17.txt2
-rwxr-xr-x1271/CH2/EX2.17/example2_17.sce12
2 files changed, 14 insertions, 0 deletions
diff --git a/1271/CH2/EX2.17/17.txt b/1271/CH2/EX2.17/17.txt
new file mode 100755
index 000000000..38700d4a9
--- /dev/null
+++ b/1271/CH2/EX2.17/17.txt
@@ -0,0 +1,2 @@
+ Slit width in first case = 1.000000e-06 meter.
+ Slit width in second case = 5.000000e-07 meter
diff --git a/1271/CH2/EX2.17/example2_17.sce b/1271/CH2/EX2.17/example2_17.sce
new file mode 100755
index 000000000..d132632e5
--- /dev/null
+++ b/1271/CH2/EX2.17/example2_17.sce
@@ -0,0 +1,12 @@
+clc
+// Given that
+lambda = 5e-7 // wavelength of light in meter
+theta = %pi / 6 // half angular width of central maximum in first case in radian
+theta_ = %pi / 2 // half angular width of central maximum in second case in radian
+// Sample Problem 17 on page no. 2.44
+printf("\n # PROBLEM 17 # \n")
+m = 1 // for first minima
+b1 = (lambda * m) / sin(theta) // calculation for slit width in first case
+b2 = (lambda * m) / sin(theta_) // calculation for slit width in second case
+printf("\n Standard formula used \n b = (lambda * m) / sin(theta). \n")
+printf("\n Slit width in first case = %e meter. \n Slit width in second case = %e meter",b1,b2)