summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.3/Ex5_3.sce
blob: 57eba41930765a60fe8c47fb6f7028999ee1e902 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 5_3
clc();
clear;
//To determine the interplanar spacing 
a=450   //units in nm
h=2
k=2
l=0
d220=a/sqrt(h^2+k^2+l^2)     //units in nm
printf("Inter planar spacing d220=%.1f nm",d220)
//in text book the answer is printed wrong as 15.1 nm The answer is  159 nm