blob: 68de8c9fcb6863380b9a25bcafe09c27e8053d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//
//
//
//Variable declaration
h=1
k=1
l=0 //miller indices
a=0.38 //lattice constant(nm)
//Calculation
d=a/sqrt(h**2+k**2+l**2) //distance between the planes(nm)
//Result
printf("\n distance between the planes is %0.2f nm",d)
|