diff options
Diffstat (limited to '3020/CH13/EX13.5')
-rwxr-xr-x | 3020/CH13/EX13.5/ex13_5.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/3020/CH13/EX13.5/ex13_5.sce b/3020/CH13/EX13.5/ex13_5.sce new file mode 100755 index 000000000..e0ad7d30d --- /dev/null +++ b/3020/CH13/EX13.5/ex13_5.sce @@ -0,0 +1,10 @@ +clc;
+clear all;
+lambda = 1.5418e-10; // Wavelength of X-rays in meters
+theta = 30; // Angle of diffracted angle in degrees
+h = 1; //Miller indices of diffracted plane
+k = 1; //Miller indices of diffracted plane
+l = 1;// Miller indices of diffracted plane
+d = lambda/(2*sind(30));// Interplanar Distance for first order diffraction
+a = d*sqrt(h^2+k^2+l^2);// Lattice constant
+disp('m',a,'The value of lattice constant is')
|