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/CH11/EX11.3/Chapter11_Example3.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1985/CH11/EX11.3/Chapter11_Example3.sce (limited to '1985/CH11/EX11.3') diff --git a/1985/CH11/EX11.3/Chapter11_Example3.sce b/1985/CH11/EX11.3/Chapter11_Example3.sce new file mode 100755 index 000000000..7812a093c --- /dev/null +++ b/1985/CH11/EX11.3/Chapter11_Example3.sce @@ -0,0 +1,17 @@ + +clc +clear +//Input data +d=5.6534*10^-10//Interplanar spacing in m +q1=13.666//Glacing angle in degrees +n1=1//Order of diffraction +n2=2//Order of diffraction + +//Calculations +l=((2*d*sind(q1))/n1)/10^-10//Wavelength in m*10^-10 +q2=asind((n2*l*10^-10)/(2*d))//Angle for the second order in degrees +qzx=(q2-(int(q2)))*60//For output +qzy=(qzx-(int(qzx)))*60//For output + +//Output +printf('(a) The wavelength of the X-rays is %3.3f*10^-10 m \n (b) The angle for the second order Bragg reflection is %3.0f degrees %3.0f minutes %3.2f seconds',l,q2,qzx,qzy) -- cgit