summaryrefslogtreecommitdiff
path: root/1271/CH2/EX2.37
diff options
context:
space:
mode:
Diffstat (limited to '1271/CH2/EX2.37')
-rwxr-xr-x1271/CH2/EX2.37/37.txt1
-rwxr-xr-x1271/CH2/EX2.37/example2_37.sce10
2 files changed, 11 insertions, 0 deletions
diff --git a/1271/CH2/EX2.37/37.txt b/1271/CH2/EX2.37/37.txt
new file mode 100755
index 000000000..a16f7723a
--- /dev/null
+++ b/1271/CH2/EX2.37/37.txt
@@ -0,0 +1 @@
+ Minimum no. of lines in grating = 490.833333 \ No newline at end of file
diff --git a/1271/CH2/EX2.37/example2_37.sce b/1271/CH2/EX2.37/example2_37.sce
new file mode 100755
index 000000000..43f6a8f58
--- /dev/null
+++ b/1271/CH2/EX2.37/example2_37.sce
@@ -0,0 +1,10 @@
+clc
+// Given that
+n = 2 // no. of order
+lambda1 = 5.89e-7 // wavelength of light in first case in meter
+lambda2 = 5.896e-7 // wavelength of light in second case in meter
+// Sample Problem 37 on page no. 2.52
+printf("\n # PROBLEM 37 # \n")
+N = lambda1 / (n * (lambda2 - lambda1)) // calculation for minimum no. of lines in grating
+printf("\n Standard formula used \n N = lambda1 / (n * (lambda2 - lambda1)). \n")
+printf("\n Minimum no. of lines in grating = %f,",N)