summaryrefslogtreecommitdiff
path: root/2465/CH22/EX22.2/Example_2.sce
blob: 2b2998ca99a5805b0fa83bac447bed3b3d7c097f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter-22,Example 2,Page 502
clc();
close();

h=2

k=2

l=0

a= 450   //length of cube in pm

d=a/sqrt((h^2)+(k^2)+(l^2))

printf("\n the spacing between planes is d = %.1f pm",d)