summaryrefslogtreecommitdiff
path: root/24/CH37/EX37.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH37/EX37.4
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 '24/CH37/EX37.4')
-rwxr-xr-x24/CH37/EX37.4/Example37_4.sce14
-rwxr-xr-x24/CH37/EX37.4/Example37_4_result.txt5
2 files changed, 19 insertions, 0 deletions
diff --git a/24/CH37/EX37.4/Example37_4.sce b/24/CH37/EX37.4/Example37_4.sce
new file mode 100755
index 000000000..85daa3b73
--- /dev/null
+++ b/24/CH37/EX37.4/Example37_4.sce
@@ -0,0 +1,14 @@
+//Given that
+l = 405*10^-9 //in meter
+d = 19.44*10^-6 //in meter
+a = 4.050*10^-6 //in meter
+
+//Sample Problem 37-4a
+printf("**Sample Problem 37-4a**\n")
+n = floor(d/a)
+printf("The number of bright fringes are %d\n", 2*n+1)
+
+//Sample Problem 37-4b
+printf("\n**Sample Problem 37-4b**\n")
+num = ceil(2*d/a)
+printf("The number of bright fringes within either of the first side peak is %d", num/2 - 1) \ No newline at end of file
diff --git a/24/CH37/EX37.4/Example37_4_result.txt b/24/CH37/EX37.4/Example37_4_result.txt
new file mode 100755
index 000000000..226cf85ff
--- /dev/null
+++ b/24/CH37/EX37.4/Example37_4_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 37-4a**
+The number of bright fringes are 9
+
+**Sample Problem 37-4b**
+The number of bright fringes within either of the first side peak is 4 \ No newline at end of file