summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.43
diff options
context:
space:
mode:
Diffstat (limited to '1847/CH3/EX3.43')
-rwxr-xr-x1847/CH3/EX3.43/Ch03Ex43.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1847/CH3/EX3.43/Ch03Ex43.sce b/1847/CH3/EX3.43/Ch03Ex43.sce
new file mode 100755
index 000000000..e91147f0c
--- /dev/null
+++ b/1847/CH3/EX3.43/Ch03Ex43.sce
@@ -0,0 +1,14 @@
+// Scilab Code EX3.43:: Page-3.57 (2009)
+clc;clear;
+lambda1 = 5890e-008; // Wavelength of sodium D1 line, cm
+lambda2 = 5896e-008; // Wavelength of sodium D2 line, cm
+d_lambda = lambda2-lambda1; // Wavelength difference, cm
+n = 3; // Order of diffraction
+P = 2500; // Number of lines per unit length of grating
+// As lambda/d_lambda = n*N, solving for N
+N = 1/n*(lambda1+lambda2)/(2*d_lambda); // Total lines on the grating
+w = N/P; // Minimum width of the grating, cm
+printf("\nThe minimum width of the grating to resolve the sodium lines in third order = %5.3f cm", w);
+
+// Result
+// The minimum width of the grating to resolve the sodium lines in third order = 0.131 cm