question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_helium_neon_photon_s_momentum do 4 kind :numerical 5 describes "Monochromatic light of wavelength %{wavelength} is produced by a helium-neon laser. %{momentum}, in " \ 6 "kg m/s?" 7 given wavelength: "632.8 nm" 8 asks momentum: "What is the momentum of each photon in the light beam" 9 end
1 require_relative "../questions/a_helium_neon_photon_s_momentum" 2 require_relative "../science/dual_nature_of_radiation_and_matter/photon" 3 4 solve :a_helium_neon_photon_s_momentum , using: Photon do 5 objects :beam 6 7 take wavelength: beam . wavelength 8 9 momentum = beam . photon_momentum 10 answer momentum :, in: "kg m/s" , figures: 3 11 12 conclusion "A photon carries momentum of Planck's constant over its wavelength, tiny for visible light." 13 end
1 require_relative "../solutions/a_helium_neon_photon_s_momentum" 2 3 play_with :a_helium_neon_photon_s_momentum do 4 title "A Helium-Neon Photon's Momentum" 5 end