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.22/Ch03Ex22.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.22/Ch03Ex22.sce')
-rwxr-xr-x | 1847/CH3/EX3.22/Ch03Ex22.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1847/CH3/EX3.22/Ch03Ex22.sce b/1847/CH3/EX3.22/Ch03Ex22.sce new file mode 100755 index 000000000..09c3d58fb --- /dev/null +++ b/1847/CH3/EX3.22/Ch03Ex22.sce @@ -0,0 +1,16 @@ +// Scilab Code Ex3.22:: Page-3.45 (2009)
+clc; clear;
+lambda1 = 5890e-008; // Wavelength of D1 line of Na, cm
+lambda2 = 5896e-008; // Wavelength of D2 line of Na, cm
+N = 3000/0.5; // No. of lines per cm of grating, lines/cm
+a_plus_b = 1/N; // Grating element, cm
+n = 1; // Order of diffraction for principal maxima
+// As (a+b)*sin(theta1) = n*lambda, solving for theta1
+theta1 = asind(n*lambda1/(a_plus_b)); // Angle of diffraction for the principal maxima of D1 line, degrees
+theta2 = asind(n*lambda2/(a_plus_b)); // Angle of diffraction for the principal maxima of D2 line, degrees
+printf("\nThe angle of diffraction for the principal maxima of D1 line = %5.2f degrees", theta1);
+printf("\nThe angle of diffraction for the principal maxima of D2 line = %5.2f degrees", theta2);
+
+// Result
+// The angle of diffraction for the principal maxima of D1 line = 20.70 degrees
+// The angle of diffraction for the principal maxima of D2 line = 20.72 degrees
|