question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_cut_off_above_the_threshold do 4 kind :numerical 5 describes "The threshold frequency for a certain metal is %{threshold}. If light of frequency %{frequency} is " \ 6 "incident on the metal, %{cut_off}, in V?" 7 given threshold: "3.3e14 Hz" 8 given frequency: "8.2e14 Hz" 9 asks cut_off: "what is the cut-off voltage for the photoelectric emission" 10 end
1 require_relative "../questions/a_cut_off_above_the_threshold" 2 require_relative "../science/dual_nature_of_radiation_and_matter/photoelectric_effect" 3 4 solve :a_cut_off_above_the_threshold , using: PhotoelectricEffect do 5 objects :metal 6 7 take threshold: metal . threshold_frequency 8 take frequency: metal . frequency 9 10 cut_off = metal . stopping_potential 11 answer cut_off :, in: "V" , figures: 3 12 13 conclusion "Only the frequency beyond the threshold goes into the electrons' motion, and the cut-off voltage " \ 14 "must undo that energy." 15 end
1 require_relative "../solutions/a_cut_off_above_the_threshold" 2 3 play_with :a_cut_off_above_the_threshold do 4 title "A Cut-Off Above the Threshold" 5 end