summaryrefslogtreecommitdiff
path: root/3768/CH3/EX3.1/Ex3_1.sce
blob: 662f924078ca358d8a9affe82e9debada109f761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example number 3.1, Page number 45

clc;clear;
close;

//Variable declaration
a=1;
b=1/2;
c=3;      //intercepts
//Calculation
h=int(c/a);
k=int(c/b);
l=int(c/c);     //smiller indices
//Result
printf("miller indices are (%d,%d,%d)",h,k,l)