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.34 | |
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.34')
-rwxr-xr-x | 1847/CH3/EX3.34/Ch03Ex34.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1847/CH3/EX3.34/Ch03Ex34.sce b/1847/CH3/EX3.34/Ch03Ex34.sce new file mode 100755 index 000000000..6edeb4c40 --- /dev/null +++ b/1847/CH3/EX3.34/Ch03Ex34.sce @@ -0,0 +1,13 @@ +// Scilab Code Ex3.34:: Page-3.51 (2009)
+clc; clear;
+lambda = 5890e-008; // Wavelength of light used, cm
+N = 6000; // No. of lines on the grating per inch, lines/inch
+a_plus_b = 2.54/N; // Grating element, cm
+theta_max = 90; // Direction of maxima for maximum possible orders
+// But a_plus_b*sind(theta_max)=n*lambda, solving for n
+n = a_plus_b*sind(theta_max)/lambda; // Number of visible orders
+
+printf("\nThe number of visible orders using diffraction grating = %d", n);
+
+// Result
+// The number of visible orders using diffraction grating = 7
|