summaryrefslogtreecommitdiff
path: root/3875/CH11/EX11.21/Ex11_21.sce
blob: 79417d7265d85d4a7f091d51008ec24f0710b395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
clc;
clear;
lambda=0.171 //wavelength of X-ray in nm
tetha_1=30 //Braggs angle in degree
tetha_2_degrees=35 //part of Braggs angle in degrees
tetha_2_minutes=17 //part of Braggs angle in minutes
h=1 //x intercept of the parallel plane 
k=1 //y intercept of the parallel plane 
l=0 //z intercept of the parallel plane 

//calculation
//case(A)
d_110=lambda/(2*sind(tetha_1))
a=d_110*sqrt(h^2+k^2+l^2)
mprintf("The lattice parameter is = %1.3f nm\n",a)

//case(B)
h=2 //x intercept of the parallel plane 
k=0 //y intercept of the parallel plane 
l=0 //z intercept of the parallel plane 
tetha_2_decdeg=tetha_2_degrees+(tetha_2_minutes/60)
d_110=lambda/(2*sind(tetha_2_decdeg))
a=d_110*sqrt(h^2+k^2+l^2)
mprintf("The lattice parameter is = %1.4f nm\n",a)
mprintf("The lattice parameters are not equal,hence metal is not bcc\n")
mprintf("We assume that the metal is fcc,lattice parameter is consistent at value=0.296 nm\n") //by multiplying d_110 by sqrt(3) and d_200 by sqrt(4)

//for atomice diameter we have
a=0.296 //lattice parameter in nm
D=a/sqrt(2)
mprintf("The atomic diameter is = %1.4f nm",D)