diff options
Diffstat (limited to '24/CH37/EX37.4')
-rwxr-xr-x | 24/CH37/EX37.4/Example37_4.sce | 14 | ||||
-rwxr-xr-x | 24/CH37/EX37.4/Example37_4_result.txt | 5 |
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 |