blob: 1b3b30d02ad58f6a467c1013e104cdafe315a8df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//
//
//
//Variable declaration
h=2
k=2
l=0 //miller indices
a=450 //length(nm)
//Calculation
d220=a/sqrt(h**2+k**2+l**2) //interplanar spacing(nm)
//Result
printf("\n interplanar spacing is %0.1f nm",d220)
printf("\n answer given in the book is wrong")
|