summaryrefslogtreecommitdiff
path: root/3492/CH1/EX1.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3492/CH1/EX1.8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3492/CH1/EX1.8')
-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)