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.29/Ch03Ex29.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.29/Ch03Ex29.sce')
-rwxr-xr-x | 1847/CH3/EX3.29/Ch03Ex29.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1847/CH3/EX3.29/Ch03Ex29.sce b/1847/CH3/EX3.29/Ch03Ex29.sce new file mode 100755 index 000000000..077fa9b6b --- /dev/null +++ b/1847/CH3/EX3.29/Ch03Ex29.sce @@ -0,0 +1,16 @@ +// Scilab Code Ex3.29:: Page-3.48 (2009)
+clc; clear;
+lambda = 6328e-008; // Wavelength of He-Laser, cm
+a_plus_b = 1/6000; // Grating element, cm
+n = 1; // First order of diffraction for given wavelength
+// As (a+b)*sin(theta1) = n*lambda, solving for theta1
+theta1 = asind(n*lambda/a_plus_b); // Angle at which first order maximum is observed, degrees
+n = 2; // second order of diffraction for given wavelength
+theta2 = asind(n*lambda/a_plus_b); // Angle at which second order maximum is observed, degrees
+
+printf("\nThe angle at which first order maximum is observed = %4.1f degrees", theta1);
+printf("\nThe angle at which second order maximum is observed = %4.1f degrees", theta2);
+
+// Result
+// The angle at which first order maximum is observed = 22.3 degrees
+// The angle at which second order maximum is observed = 49.4 degrees
|