summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.24/Ch03Ex24.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH3/EX3.24/Ch03Ex24.sce
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 '1847/CH3/EX3.24/Ch03Ex24.sce')
-rwxr-xr-x1847/CH3/EX3.24/Ch03Ex24.sce15
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