summaryrefslogtreecommitdiff
path: root/2309/CH5/EX5.10/Ex5_10.sce
blob: 9846717dd9f9956fa8faed29e45b9b254cef57b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Chapter 5 Example 10
//==============================================================================
clc;
clear;

// input data
// FCC structured crystal

p       = 6250;             // Density of crystal in kg/m^3
N       = 6.023*10^26;      // Avagadros number in atoms/kilomole
A       = 60.2;             // molecular weight
n       = 4;                // No. of atoms per unit cell for FCC

//Calculations

a       = ((n*A)/(N*p))^(1/3);

//Output

mprintf('Lattice Constant a = %3.1e m ',a);
//==============================================================================