summaryrefslogtreecommitdiff
path: root/3636/CH2/EX2.7/Ex2_7.sce
blob: d6514602ab2485061b580f30daf4ad10a1169c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)