summaryrefslogtreecommitdiff
path: root/635/CH1/EX1.3/Ch01Ex3.sci
blob: c6394ab6645dc4d5b0d113f0b58cb6a7cd3046e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab Code Ex1.3 Number of Lattice points per unit cell Page-9 (2010)
a = 3.60D-10;    // Lattice parameter, m:
M = 63.6;        // Atomic weight, gram per mole
d = 8960D+03;    // Density of copper, g per metre cube
N = 6.023D+23;    // Avogadro's No.
// Volume of the unit cell is given by
// a^3 = M*n/(N*d)
// Solving for n
n = a^3*d*N/M; // Number of lattice points per unit cell
disp (n, "The number of atoms per unit cell for an fcc lattice of copper crystal is :");

// Result 
// The number of atoms per unit cell for an fcc lattice of copper crystal
// 3.9588702