diff options
Diffstat (limited to '3636/CH2/EX2.7/Ex2_7.sce')
-rw-r--r-- | 3636/CH2/EX2.7/Ex2_7.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3636/CH2/EX2.7/Ex2_7.sce b/3636/CH2/EX2.7/Ex2_7.sce new file mode 100644 index 000000000..d6514602a --- /dev/null +++ b/3636/CH2/EX2.7/Ex2_7.sce @@ -0,0 +1,14 @@ +clear;
+clc;
+// r = p*a + q*b + s*c
+x=3 //intercept on x axis
+y=4 //intercept on y axis
+z=5 //intercept on z zxis
+
+//Calculation
+LCM=lcm({x,y,z}) //LCM for computing miller indices
+rx=1/x*LCM //reciprocal
+ry=1/y*LCM
+rz=1/z*LCM
+
+mprintf("Miller indices of plane are (%i,%i,%i)",rx,ry,rz)
|