summaryrefslogtreecommitdiff
path: root/3869/CH6/EX6.21/Ex6_21.sce
blob: b0d7a2d74ae0032f8f09489e9e4b4d9bda20a715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//
//
//

//Variable declaration
h=1
k=1
l=1                     //miller indices
r=1.278*10**-10         //radius(m)

//Calculation
a=4*r/sqrt(2)       
d111=a/sqrt(h**2+k**2+l**2)          //interplanar spacing(m)

//Result
printf("\n interplanar spacing is %0.2f  *10**-10 m",d111*10**10)