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.24/Ch03Ex24.sce | |
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.24/Ch03Ex24.sce')
-rwxr-xr-x | 1847/CH3/EX3.24/Ch03Ex24.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1847/CH3/EX3.24/Ch03Ex24.sce b/1847/CH3/EX3.24/Ch03Ex24.sce new file mode 100755 index 000000000..481d37368 --- /dev/null +++ b/1847/CH3/EX3.24/Ch03Ex24.sce @@ -0,0 +1,15 @@ +// Scilab Code Ex3.24: : Page-3.46 (2009)
+clc; clear;
+lambda1 = 5890e-008; // Wavelength of D1 line, cm
+lambda2 = 5896e-008; // Wavelength of D2 line, cm
+N = 15000; // No. of lines per inch of grating, lines/inch
+a_plus_b = 2.54/N; // Grating element, cm
+n = 2; // Order of diffraction for secondary maxima
+// As (a+b)*sin(theta_n) = n*lambda, solving for theta1 and theta2
+theta1 = asind(n*lambda1/a_plus_b); // Direction of secondary maxima with lambda1, degrees
+theta2 = asind(n*lambda2/a_plus_b); // Direction of secondary maxima with lambda2, degrees
+
+printf("\nThe angle of separation in second order diffraction spectrum = %3.1f degrees", theta2-theta1);
+
+// Result
+// The angle of separation in second order diffraction spectrum = 0.1 degrees
|