summaryrefslogtreecommitdiff
path: root/1826/CH2/EX2.7/ex2_7.sce
blob: 2ab942fd12f6dda7dc993f87ff91bf0a4a684302 (plain)
1
2
3
4
5
6
7
8
9
// Example 2.7, page no-33
clear
clc
h=3
k=2
l=1
a=4.12*10^-10
d=a/sqrt(h^2+k^2+l^2)
printf("The lattice spacing for the plane(321) is %.4f*10^-10 m",d*10^10)