question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :the_electron_s_speed_in_hydrogen do 4 kind :numerical 5 describes "It is found experimentally that %{energy} of energy is required to separate a hydrogen atom into a " \ 6 "proton and an electron. Taking the electron's mass as %{mass}, %{speed}, in m/s?" 7 given energy: "13.6 eV" 8 given mass: "9.1e-31 kg" 9 asks speed: "What is the speed of the electron in its orbit" 10 end
1 require_relative "../questions/the_electron_s_speed_in_hydrogen" 2 require_relative "../science/atoms/bohr_model" 3 4 solve :the_electron_s_speed_in_hydrogen , using: BohrModel do 5 objects :electron 6 7 take energy: electron . binding_energy 8 take mass: electron . mass 9 10 speed = electron . orbital_speed 11 answer speed :, in: "m/s" , figures: 2 12 13 conclusion "The proton's pull is what keeps the electron circling, so the orbit's size fixes how fast it must go." 14 end
1 require_relative "../solutions/the_electron_s_speed_in_hydrogen" 2 3 play_with :the_electron_s_speed_in_hydrogen do 4 title "The Electron's Speed in Hydrogen" 5 end