summaryrefslogtreecommitdiff
path: root/3492/CH1/EX1.8/Ex1_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3492/CH1/EX1.8/Ex1_8.sce')
-rw-r--r--3492/CH1/EX1.8/Ex1_8.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3492/CH1/EX1.8/Ex1_8.sce b/3492/CH1/EX1.8/Ex1_8.sce
new file mode 100644
index 000000000..5fb793144
--- /dev/null
+++ b/3492/CH1/EX1.8/Ex1_8.sce
@@ -0,0 +1,14 @@
+clc
+//Chapter1
+//Ex_1.8
+//Given
+a=1/%inf
+b=-1/1
+c=2/1
+p = int32([1,1,1])
+// 1/%inf = 0 ; (0/1 -1/1 2/1) hence lcm is taken for [1 1 1]
+LCM = lcm(p)
+h=a*double(LCM)
+k=b*double(LCM)
+l=c*double(LCM)
+ mprintf('miller indices = %d %d %d',h,k,l)