about | help | code help+videos | done | prefs |
The element hydrogen emits a series of specific wavelengths of light, or a "spectrum", that can be determined by the Rydberg equation: 1/a = 1.096*10^-2((1/n^2) - (1/m^2)) , where "a" is the wavelength of light emitted (in nanometers) when an electron jumps from energy level "m" to "n". (You will learn more about this in the DESI High Intro.ipynb notebook!) Use the Rydberg equation to write the "Rydberg" function, which takes in the variables "n" and "m" and returns the wavelength of light emitted as a result. Note: scientific notation in the form x*10^y can be written in Python as xey (e.g., 3.2*10^7 can be written as 3.2e7) Rydberg(1, 2) → 121.65450121654501 Rydberg(1, 3) → 102.64598540145987 Rydberg(2, 8) → 389.29440389294405 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 10 Post-solution available
Copyright Nick Parlante 2017 - privacy