diff options
Diffstat (limited to '3636/CH2/EX2.2/Ex2_2.sce')
-rw-r--r-- | 3636/CH2/EX2.2/Ex2_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3636/CH2/EX2.2/Ex2_2.sce b/3636/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..023554179 --- /dev/null +++ b/3636/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,14 @@ +clc;
+clear;
+// r = p*a + q*b + s*c
+p=1
+q=2
+s=3
+
+//Calculation
+LCM=lcm({p,q,s}) //LCM for computing miller indices
+rx=1/p*LCM //reciprocals
+ry=1/q*LCM
+rz=1/s*LCM
+
+mprintf("The plane depicted in the figure is denoted by (%i,%i,%i)",rx,ry,rz)
|