diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1985/CH11/EX11.3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1985/CH11/EX11.3')
-rwxr-xr-x | 1985/CH11/EX11.3/Chapter11_Example3.sce | 17 |
1 files changed, 17 insertions, 0 deletions
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)
|