summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.32/Ex5_32.sce
blob: 6ca4a2ec01e5b8052d632d426924f760ae111453 (plain)
1
2
3
4
5
6
7
8
9
//Example 5_32
clc();
clear;
//To find the plane which gives reflection
D=0.228  //units in nm
lamda=0.154  //units in nm
hkl=((2*D)/((lamda/2)*sqrt(3)))^2
printf("Tha maximum value that is possible for h^2+k^2+l^2=%.2f so (h,k,l) values are (2,2,2)",hkl)
//In text book answer printed wrong as 13.98 correct answer is 11.69