diff options
Diffstat (limited to '3411/CH5/EX5.4/Ex5_4.sce')
-rw-r--r-- | 3411/CH5/EX5.4/Ex5_4.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3411/CH5/EX5.4/Ex5_4.sce b/3411/CH5/EX5.4/Ex5_4.sce new file mode 100644 index 000000000..ef1229c92 --- /dev/null +++ b/3411/CH5/EX5.4/Ex5_4.sce @@ -0,0 +1,13 @@ +//Example 5_4
+clc();
+clear;
+//To calculate the inter planar distance
+a=0.82 //units in nm
+b=0.94 //units in nm
+c=0.75 //units in nm
+h=1
+k=2
+l=3
+d=1/sqrt((((h/a)^2)+((k/b)^2)+((l/c)^2))) //units in nm
+printf("The Distance between (1,2,3) planes and (2,4,6) planes is d123=%.2fnm and d246=%.2fnm",d,d/2)
+//In textbook the answer is printed wrong as d123=0.11nm and d246=0.055nm but the correct answers are d123=0.21nm and d246=0.11nm
|