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 --- 1985/CH4/EX4.4/Chapter4_Example4.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1985/CH4/EX4.4/Chapter4_Example4.sce (limited to '1985/CH4/EX4.4') diff --git a/1985/CH4/EX4.4/Chapter4_Example4.sce b/1985/CH4/EX4.4/Chapter4_Example4.sce new file mode 100755 index 000000000..3559148f5 --- /dev/null +++ b/1985/CH4/EX4.4/Chapter4_Example4.sce @@ -0,0 +1,16 @@ +clc +clear +//Input data +w=[5000,5100]//Wavelengths of light in Armstrongs +N=6000//Number of lines drawn on the grating per cm +n=1//Order of diffraction +F=1//Focal length of the lens in m + +//Calculations +q1=asind(N*100*n*w(1)*10^-10)//Angle of diffraction for D1 line in degrees +q2=asind(N*100*n*w(2)*10^-10)//Angle of diffraction for D1 line in degrees +x=F*(tand(q2)-tand(q1))*1000//Seperation of the two lines in mm + +//Output +printf('Seperation of two lines in the first order spectrum is %3.1f mm',x) + -- cgit