blob: 9b65a0a1fb8dd4b7c30e730b69bfcafca99ea0eb (
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
|
clear
//
//
//
//Variable declaration
h1=1
k1=2
l1=3 //miller indices
h2=2
k2=4
l2=6 //miller indices
a=0.82
b=0.94
c=0.75 //parameters(nm)
//Calculation
d123=(((h1/a)**2)+((k1/b)**2)+((l1/c)**2))**(-1/2) //interplanar distance between (123) planes
d246=d123/2 //interplanar distance between (246) planes
//Result
printf("\n interplanar distance between (123) planes is %0.3f nm",d123)
printf("\n interplanar distance between (246) planes is %0.4f nm",d246)
printf("\n answers given in the book are wrong")
|