blob: 4379df46624f0143736360bdd4e165c91b3de1d0 (
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
|
// Example 2.13, page no-37
clear
clc
//(i)
h=1
k=1
l=1
a=4.12*10^-10
d=a/sqrt(h^2+k^2+l^2)
printf("\nFor (111) plane\nThe lattice spacing is %.3f*10^-10 m",d*10^10)
//(ii)
h=1
k=1
l=2
a=4.12*10^-10
d=a/sqrt(h^2+k^2+l^2)
printf("\n\nFor (112) plane\nThe lattice spacing is %.3f*10^-10 m",d*10^10)
//(iii)
h=1
k=2
l=3
a=4.12*10^-10
d=a/sqrt(h^2+k^2+l^2)
printf("\n\nFor (123) plane\nThe lattice spacing is %.3f*10^-10 m",d*10^10)
|