summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.17/Ex5_17.sce
blob: 884f58c42fd6904e4b1ea79554864139524b1c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 5_17
clc();
clear;
//To compare  the density of lattice points
//For (110) plane
area=sqrt(2)   //units in a
areacontains=(1/4)*4
density=1/area       //units in a
//(111) plane
areaa=1/sqrt(2)     //interms of a
eo=sqrt(3)/sqrt(2)
area1=eo/sqrt(2)
density=(3*(1/6))/(area1)
printf("The ratio of density of planes is %.3f:%.3f",sqrt(2),sqrt(3))