summaryrefslogtreecommitdiff
path: root/1004/CH2/EX2.23/Ch02Ex23.sci
blob: b131f7ad299be82d25a8432adf1675d1bb429782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Scilab Code Ex2.23 Wavelength of emitted light: Pg:60 (2008)
e = 1.6e-019;    // Charge on an electron, coulomb
h = 6.624e-034;    // Planck's Constant, Js
n = 2;    // Principal quantum number for second orbit in H-atom
V = 13.6;    // Ionization potential of H-atom, V
U1 = -1*V*e;    // Energy of electron in first orbit, J
U2 = U1/n^2;    // Energy of electron in second orbit, J
// As U2 - U1 = h*c/L, solving for L
L = h*c/(U2 - U1);    // Wavelength of light emitted in the transition from second orbit to the first orbit, m
printf("\nThe wavelength of light emitted in the transition from second orbit to the first orbit = %4d angstrom", L/1e-010);
// Result 
// The wavelength of light emitted in the transition from second orbit to the first orbit = 1217 angstrom