summaryrefslogtreecommitdiff
path: root/1871/CH5/EX5.18
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1871/CH5/EX5.18
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 '1871/CH5/EX5.18')
-rwxr-xr-x1871/CH5/EX5.18/Ch05Ex18.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1871/CH5/EX5.18/Ch05Ex18.sce b/1871/CH5/EX5.18/Ch05Ex18.sce
new file mode 100755
index 000000000..2266ab0ab
--- /dev/null
+++ b/1871/CH5/EX5.18/Ch05Ex18.sce
@@ -0,0 +1,13 @@
+// Scilab code Ex5.18: Pg:227 (2008)
+clc;clear;
+n = 2; // Order of diffraction
+Lambda = 6000e-08; // Wavelength of light on the grating, cm
+m = 16000; // Number of lines per inch on grating
+L = 5; // Length of the ruled grating, inches
+N = L*m; // Total number of lines on the grating
+// Since the resolving power, Lambda/d_Lambda = n*N, solving for d_Lambda
+d_Lambda = Lambda/(n*N); // The smallest wavelength difference, Angstorm
+printf("\nThe smallest wavelength difference in the second order = %6.4f angstrom",d_Lambda/1e-008);
+
+// Result
+// The smallest wavelength difference in the second order = 0.0375 angstrom \ No newline at end of file