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/CH3/EX3.2/Ch03Ex2.sci | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 1535/CH3/EX3.2/Ch03Ex2.sci (limited to '1535/CH3/EX3.2') diff --git a/1535/CH3/EX3.2/Ch03Ex2.sci b/1535/CH3/EX3.2/Ch03Ex2.sci new file mode 100755 index 000000000..80ecedfe0 --- /dev/null +++ b/1535/CH3/EX3.2/Ch03Ex2.sci @@ -0,0 +1,12 @@ +// Scilab Code Ex3.2 : Page-71 (2010) +lambda1 = 4250e-010; // First wavelength emitted by source of light, m +lambda2 = 5050e-010; // Second wavelength emitted by source of light, m +D = 1.5; // Distance between the source and the screen, m +d = 0.025e-03; // Distance between the slits, m +n = 3; // Number of fringe from the centre +x3 = n*lambda1*D/d; // Position of third bright fringe due to lambda1, m +x3_prime = n*lambda2*D/d; // Position of third bright fringe due to lambda2, m +printf("\nThe separation between the third bright fringe due to the two wavelengths = %4.2f cm", (x3_prime - x3)/1e-02); + +// Result +// The separation between the third bright fringe due to the two wavelengths = 1.44 cm \ No newline at end of file -- cgit