blob: d6f49d63b8153ac8d32cf6adb75a6cd32b9e28b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
// Given that
x = 2 // intercepts cut by the plane along vector a of crystallographic axes
y = 3 // intercepts cut by the plane along vector b of crystallographic axes
z = 1 // intercepts cut by the plane along vector c of crystallographic axes
// Sample Problem 1 on page no. 13.24
printf("\n # PROBLEM 1 # \n")
printf("Standard formula used \n")
printf(" x_ = a / x \n y_ = b / y \n z_ = c / z \n")
x_ = 6 / x
y_ = 6 / y
z_ = 6 / z
printf("\n Miller indices of the plane are (%d %d %d)",x_,y_,z_)
|