summaryrefslogtreecommitdiff
path: root/3159/CH5/EX5.3/Ex5_3.sce
blob: 2942a912e7539ff7ffae4365cabd7bab06490683 (plain)
1
2
3
4
5
6
7
8
9
10
11
// calculate the c/a ratio for an ideally close packed HCP crystal
clc
a = 1 // let
PR = a
printf("\ Example 5.3")
RT = a/sqrt(3)
PT = sqrt(PR^2-RT^2)
c_a = 2*PT/PR
// Calculations are made on the crystal structure drawn in book
printf("\n c/a ratio for an ideally close packed HCP crystal is %0.3f ",c_a)