1require_relative "../physics"23question :a_helium_atom_on_the_sun do4 kind :numerical5 describes "%{energy} at the temperature on the surface of the Sun (%{temperature}), in joules?"6 given temperature: "6000 K"7 asks energy: "Estimate the average thermal energy of a helium atom"8end
1require_relative "../questions/a_helium_atom_on_the_sun"2require_relative "../science/kinetic_theory/rms_speed"34solve :a_helium_atom_on_the_sun, using: RmsSpeed do5 objects :helium67 take temperature: helium.temperature89 energy = helium.average_thermal_energy10 answer energy:, in: "J", figures: 31112 conclusion "The average energy of motion grows in step with the absolute temperature, so the Sun's surface " \13 "gives each atom some twenty times what a room does."14end
1require_relative "../solutions/a_helium_atom_on_the_sun"23play_with :a_helium_atom_on_the_sun do4 title "A Helium Atom on the Sun"5end