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.6/Chapter4_Example6.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 1985/CH4/EX4.6/Chapter4_Example6.sce (limited to '1985/CH4/EX4.6/Chapter4_Example6.sce') diff --git a/1985/CH4/EX4.6/Chapter4_Example6.sce b/1985/CH4/EX4.6/Chapter4_Example6.sce new file mode 100755 index 000000000..ef5e470f4 --- /dev/null +++ b/1985/CH4/EX4.6/Chapter4_Example6.sce @@ -0,0 +1,13 @@ +clc +clear +//Input data +N=14438//Number of lines per inch +n=3//Order of diffraction +w=(4200*10^-10)//Wavelength of light used in m + +//Calculations +x=(N/2.54)*100//Number of lines per m +dq=((n*x*10^-10)/sqrt(1-(x^2*n^2*w^2)))*(180/3.14)//Angular seperation in degrees. In textbook, it is given wrong as 0.14 degrees + +//Output +printf('The angular seperation is %3.3f degrees',dq) -- cgit