summaryrefslogtreecommitdiff
path: root/1271/CH2/EX2.23/example2_23.sce
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.23/example2_23.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 '1271/CH2/EX2.23/example2_23.sce')
-rwxr-xr-x1271/CH2/EX2.23/example2_23.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1271/CH2/EX2.23/example2_23.sce b/1271/CH2/EX2.23/example2_23.sce
new file mode 100755
index 000000000..9236a9545
--- /dev/null
+++ b/1271/CH2/EX2.23/example2_23.sce
@@ -0,0 +1,15 @@
+clc
+// Given that
+d = 4e-4 // separation between slits in meter
+b = 8e-5 // slit-width in meter
+// Sample Problem 23 on page no. 2.47
+printf("\n # PROBLEM 23 # \n")
+r = (b + d) / b // calculation for ratio of n with m
+m1 = 1
+n1 = r * m1 // calculation for Missing orders
+m2 = 2
+n2 = r * m2 // calculation for Missing orders
+m3 = 3
+n3 = r * m3 // calculation for Missing orders
+printf("\n Standard formula used \n r = (b + d) / b. \n n = r * m. \n")
+printf("\n Missing orders = %d,%d,%d,......",n1,n2,n3)