summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.11/Ex2_11.sce
blob: db662d93f53c53d42f414ff126e84aba9e979762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//
//
//

//Variable declaration    
a=4.2;      //lattice constant(angstrom)
h=3;       //intercept on X axis
k=2;      //intercept on Y axis
l=1;      //intercept on Z-axis

//Calculations
d=a/sqrt(h^2+k^2+l^2);       //interplanar spacing(angstrom)

//Result
printf("\n interplanar spacing is %0.2f angstrom",d)