From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1847/CH3/EX3.34/Ch03Ex34.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 1847/CH3/EX3.34/Ch03Ex34.sce (limited to '1847/CH3/EX3.34') 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 -- cgit