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 --- 1535/CH4/EX4.6/Ch04Ex6.sci | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1535/CH4/EX4.6/Ch04Ex6.sci (limited to '1535/CH4/EX4.6') diff --git a/1535/CH4/EX4.6/Ch04Ex6.sci b/1535/CH4/EX4.6/Ch04Ex6.sci new file mode 100755 index 000000000..7cff022d1 --- /dev/null +++ b/1535/CH4/EX4.6/Ch04Ex6.sci @@ -0,0 +1,17 @@ +// Scilab Code Ex4.6 : Page-93 (2010) +n = 1; // Order of diffraction spectrum +N = 6000e+02; // Number of lines per m on diffraction grating, per m +D = 2; // Distance of screen from the source, m +lambda1 = 400e-009; // Wavelength of blue light, m +// We have sin(theta1) = n*N*lambda, solving for theta1 +theta1 = asind(n*N*lambda1); // Angle at first order diffraction for Blue light, degrees +lambda2 = 750e-009; // Wavelength of blue light, m +// We have sin(theta2) = n*N*lambda, solving for theta2 +theta2 = asind(n*N*lambda2); // Angle at first order diffraction for Red light, degrees +x1 = D*tand(theta1); // Half width position at central maximum for blue color, m +x2 = D*tand(theta2); // Half width position at central maximum for red color, m + +printf("\nThe width of first order spectrum on the screen = %4.1f cm", (x2 - x1)/1e-02); + +// Result +// The width of first order spectrum on the screen = 51.3 cm \ No newline at end of file -- cgit