question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_cut_off_of_one_and_a_half_volts do 4 kind :numerical 5 describes "The photoelectric cut-off voltage in a certain experiment is %{cut_off}. %{energy}, in J?" 6 given cut_off: "1.5 V" 7 asks energy: "What is the maximum kinetic energy of photoelectrons emitted" 8 end
1 require_relative "../questions/a_cut_off_of_one_and_a_half_volts" 2 require_relative "../science/dual_nature_of_radiation_and_matter/photoelectric_effect" 3 4 solve :a_cut_off_of_one_and_a_half_volts , using: PhotoelectricEffect do 5 objects :emitter 6 7 take cut_off: emitter . stopping_potential 8 9 energy = emitter . maximum_kinetic_energy 10 answer energy :, in: "J" , figures: 2 11 12 conclusion "The cut-off voltage just stops the fastest electrons, so their kinetic energy is the electron's " \ 13 "charge times that voltage." 14 end
1 require_relative "../solutions/a_cut_off_of_one_and_a_half_volts" 2 3 play_with :a_cut_off_of_one_and_a_half_volts do 4 title "A Cut-Off of One and a Half Volts" 5 end