summaryrefslogtreecommitdiff
path: root/3020/CH13/EX13.16/ex13_16.sce
blob: 0a4e0d521545ae78c15224cab9238a0394343b10 (plain)
1
2
3
4
5
6
7
8
clc;
clear all;
a = 0.405e-9; // Lattice constant in meters
t = 0.005e-2; // Thickness of Al foil in meters
sl = 25e-4; // Side length of the Al foil in meters
n = (t*sl)/a^3; // Number of atoms in the Al foil
disp('',n,'The number of atoms in the Al foil is')
// Wrong answer in the textbook... Chcecked in calculator also