blob: e08b3f336f3c99e54b630cf90d78e1f947054870 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
clear
//
//
//
//Variable declaration
d=0.203*10**-9 //lattice spacing(m)
h=1
k=1
l=0 //miller indices of (110)
lamda=1.5 //wavelength of X-rays(angstrom)
//Calculation
a=d*sqrt(h**2+k**2+l**2) //length(m)
V=a**3 //volume of unit cell(m**3)
r=sqrt(3)*a/4 //radius of atom(m)
//Result
printf("\n length is %0.3f *10**-9 m",a*10**9)
printf("\n volume of unit cell is %0.5f *10**-27 m**3",V*10**27)
printf("\n answer for volume given in the book varies due to rounding off errors")
printf("\n radius of atom is %0.4f *10**-9 m",r*10**9)
|