question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :caesium_s_stopping_potential do 4 kind :numerical 5 describes "The work function of caesium metal is %{work_function}. When light of frequency %{frequency} is " \ 6 "incident on the metal surface, photoemission of electrons occurs. %{stopping}, in V?" 7 given work_function: "2.14 eV" 8 given frequency: "6e14 Hz" 9 asks stopping: "What is the stopping potential" 10 end
1 require_relative "../questions/caesium_s_stopping_potential" 2 require_relative "../science/dual_nature_of_radiation_and_matter/photoelectric_effect" 3 4 solve :caesium_s_stopping_potential , using: PhotoelectricEffect do 5 objects :caesium 6 7 take work_function: caesium . work_function 8 take frequency: caesium . frequency 9 10 stopping = caesium . stopping_potential 11 answer stopping :, in: "V" , figures: 2 12 13 conclusion "The stopping potential must take away the fastest electron's energy, which is the photon's energy " \ 14 "less the work function." 15 end
1 require_relative "../solutions/caesium_s_stopping_potential" 2 3 play_with :caesium_s_stopping_potential do 4 title "Caesium's Stopping Potential" 5 end