summaryrefslogtreecommitdiff
path: root/3636/CH2/EX2.7
diff options
context:
space:
mode:
Diffstat (limited to '3636/CH2/EX2.7')
-rw-r--r--3636/CH2/EX2.7/Ex2_7.sce14
-rw-r--r--3636/CH2/EX2.7/Ex2_7.txt1
2 files changed, 15 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)
diff --git a/3636/CH2/EX2.7/Ex2_7.txt b/3636/CH2/EX2.7/Ex2_7.txt
new file mode 100644
index 000000000..c5536a97d
--- /dev/null
+++ b/3636/CH2/EX2.7/Ex2_7.txt
@@ -0,0 +1 @@
+ Miller indices of plane are (20,15,12) \ No newline at end of file