diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH3/EX3.23 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1847/CH3/EX3.23')
-rwxr-xr-x | 1847/CH3/EX3.23/Ch03Ex23.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1847/CH3/EX3.23/Ch03Ex23.sce b/1847/CH3/EX3.23/Ch03Ex23.sce new file mode 100755 index 000000000..7254a98c0 --- /dev/null +++ b/1847/CH3/EX3.23/Ch03Ex23.sce @@ -0,0 +1,14 @@ +// Scilab Code Ex3.23:: Page-3.45 (2009)
+clc; clear;
+lambda = 5500e-008; // Wavelength of light used, cm
+N = 15000; // No. of lines per inch of grating, lines/inch
+a_plus_b = 2.54/N; // Grating element, cm
+n = 1; // Order of diffraction for principal maxima
+// As (a+b)*sin(theta_n) = n*lambda and for maximum possible order of spectra sin(theta_n) = 1
+// So (a+b) = n*lambda, solving for n
+n = (a_plus_b)/lambda; // The highest order spectrum which can be seen in monochromatic light
+
+printf("\nThe highest order spectrum which can be seen in monochromatic light = %d", n);
+
+// Result
+// The highest order spectrum which can be seen in monochromatic light = 3
|