blob: 422cf70a731afa31b93dedf9b7ac00cc246b20d1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 5_16
clc();
clear;
//To calculate the distane between (110) planes
a=0.38 //units in nm
h=1
k=1
l=0
d=a/sqrt(h^2+k^2+l^2)
printf("Distance between (110) planes d = %.2f nm",d)
|