question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_copper_coin_pulled_apart do 4 kind :numerical 5 describes "A given coin has a mass of %{coin}. For simplicity assume that the coin is entirely made of copper " \ 6 "atoms (A = %{nucleons}, Z = %{protons}) of mass %{atom}. Taking mH = %{hydrogen} and mn = %{neutron}, " \ 7 "%{energy}, in MeV?" 8 given coin: "3.0 g" 9 given nucleons: "63" 10 given protons: "29" 11 given atom: "62.92960 u" 12 given hydrogen: "1.007825 u" 13 given neutron: "1.008665 u" 14 asks energy: "what is the nuclear energy that would be required to separate all the neutrons and protons from " \ 15 "each other" 16 end
1 require_relative "../questions/a_copper_coin_pulled_apart" 2 require_relative "../science/nuclei/mass_energy" 3 4 solve :a_copper_coin_pulled_apart , using: MassEnergy do 5 objects :coin , copper: :Cu 6 7 take coin: coin . mass 8 take nucleons: copper . mass_number 9 take protons: copper . atomic_number 10 take atom: copper . mass 11 take hydrogen: m_H 12 take neutron: m_n 13 14 deduce_from "entirely made of copper atoms" , coin . binding_energy => coin . mass / copper . mass * copper . binding_energy 15 16 energy = coin . binding_energy 17 answer energy :, in: "MeV" , figures: 3 18 19 conclusion "Every one of the coin's countless copper nuclei must be pulled apart, so even a small coin holds " \ 20 "an enormous nuclear binding energy." 21 end
1 require_relative "../solutions/a_copper_coin_pulled_apart" 2 3 play_with :a_copper_coin_pulled_apart do 4 title "A Copper Coin Pulled Apart" 5 end