diff options
Diffstat (limited to '2309/CH5/EX5.2')
-rwxr-xr-x | 2309/CH5/EX5.2/Ex5_2.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2309/CH5/EX5.2/Ex5_2.sce b/2309/CH5/EX5.2/Ex5_2.sce new file mode 100755 index 000000000..6c19c2acd --- /dev/null +++ b/2309/CH5/EX5.2/Ex5_2.sce @@ -0,0 +1,26 @@ +// Chapter 5 Example 1
+//==============================================================================
+clc;
+clear;
+
+//input data
+//given intercepts 3,4 and ∞, the recipocals of intercepts is
+// (1/3):(1/4):(1/∞)
+// LCM = 12
+// multiplying by LCM we get miller indices
+// miller indices of a plane are the smallest integers of the reciprocals of its intercerpts
+// therefore miller indices(h k l) is (4 3 0);
+
+h = 4; // miller indice
+k = 3; // miller indice
+l = 0; // miller indice
+a = 2; // primitive vector of lattice in angstrom
+
+//Calculations
+
+dhkl = a/sqrt((h^2)+(k^2)+(l^2)); // interplanar distance
+
+//Output
+mprintf('Miller indices = (4 3 0)\n');
+mprintf(' The interplanar distance d = %3.1f Å',dhkl);
+//==============================================================================
|