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.9/Ch03Ex9.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1847/CH3/EX3.9/Ch03Ex9.sce (limited to '1847/CH3/EX3.9') diff --git a/1847/CH3/EX3.9/Ch03Ex9.sce b/1847/CH3/EX3.9/Ch03Ex9.sce new file mode 100755 index 000000000..308349a5b --- /dev/null +++ b/1847/CH3/EX3.9/Ch03Ex9.sce @@ -0,0 +1,14 @@ +// Scilab Code Ex3.9:: Page-3.24 (2009) +clc; clear; +lambda = 6600e-008; // Wavelength of light used, cm +a = 0.018; // Width of the slit, cm +f = 200; // Focal length of the lens, cm +n = 1; // Order for first order diffraction +// As a*sin(theta) = n*lambda, a*theta = n*lambda +// As theta = lambda/a and theta = x/f, solving for x +x = lambda*f/a; // Half angular width at central maximum, cm + +printf("\nThe width of central maximum = %3.1f cm", 2*x); + +// Result +// The width of central maximum = 1.5 cm -- cgit