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.26 | |
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.26')
-rwxr-xr-x | 1847/CH3/EX3.26/Ch03Ex26.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1847/CH3/EX3.26/Ch03Ex26.sce b/1847/CH3/EX3.26/Ch03Ex26.sce new file mode 100755 index 000000000..5ac174ad1 --- /dev/null +++ b/1847/CH3/EX3.26/Ch03Ex26.sce @@ -0,0 +1,16 @@ +// Scilab Code Ex3.26:: Page-3.47 (2009)
+clc; clear;
+lambda = 5000e-008; // Wavelength of light used, cm
+N = 5000; // No. of lines per cm of grating, lines/cm
+a_plus_b = 1/N; // Grating element, cm
+n = 1; // Order of diffraction for first order spectra
+// As (a+b)*sin(theta_n) = n*lambda, solving for theta for first and third orders
+theta1 = asind(n*lambda/a_plus_b); // Direction of principal maxima with lambda1, degrees
+n = 3; // Order of diffraction for third order spectra
+theta3 = asind(n*lambda/a_plus_b); // Direction of principal maxima with lambda2, degrees
+delta_theta = theta3 - theta1; // Angular separation in the first and third order spectra,
+
+printf("\nThe difference in the deviation in the first and third order spectra = %4.1f degrees", delta_theta);
+
+// Result
+// The difference in the deviation in the first and third order spectra = 34.1 degrees
|