question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :uranium_hexafluoride_isotopes do 4 kind :numerical 5 describes "Uranium has two isotopes of masses %{light} and %{heavy}. Both are present in uranium hexafluoride gas. If " \ 6 "the atomic mass of fluorine is %{fluorine}, %{ratio} at any temperature?" 7 given light: "235 g/mol" 8 given heavy: "238 g/mol" 9 given fluorine: "19 g/mol" 10 asks ratio: "by what factor is the lighter molecule faster than the heavier" 11 end
1 require_relative "../questions/uranium_hexafluoride_isotopes" 2 require_relative "../science/kinetic_theory/rms_speed" 3 4 solve :uranium_hexafluoride_isotopes , using: RmsSpeed do 5 objects :fluorine , lighter: :m235 , heavier: :m238 , light_uranium: :U235 , heavy_uranium: :U238 6 7 take light: light_uranium . molar_mass 8 take heavy: heavy_uranium . molar_mass 9 take fluorine: fluorine . molar_mass 10 11 deduce_from "uranium hexafluoride" , lighter . molar_mass => light_uranium . molar_mass + 6 * fluorine . molar_mass , 12 heavier . molar_mass => heavy_uranium . molar_mass + 6 * fluorine . molar_mass 13 deduce_from "at any temperature" , lighter . temperature => heavier . temperature 14 15 answer find_relation ( lighter . rms_speed / heavier . rms_speed ), figures: 4 16 17 conclusion "The two molecules differ by three parts in three hundred and fifty, so their speeds differ by " \ 18 "half that; slight, but enough to separate the isotopes by diffusion." 19 end
1 require_relative "../solutions/uranium_hexafluoride_isotopes" 2 3 play_with :uranium_hexafluoride_isotopes do 4 title "Uranium Hexafluoride Isotopes" 5 end