question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :the_earth_s_quantum_number do 4 kind :numerical 5 describes "In accordance with the Bohr's model, %{number} that characterises the earth's revolution around the " \ 6 "sun in an orbit of radius %{radius} with orbital speed %{speed}? (Mass of earth = %{mass}.)" 7 given radius: "1.5e11 m" 8 given speed: "3e4 m/s" 9 given mass: "6.0e24 kg" 10 asks number: "what is the quantum number" 11 end
1 require_relative "../questions/the_earth_s_quantum_number" 2 require_relative "../science/atoms/bohr_model" 3 4 solve :the_earth_s_quantum_number , using: BohrModel do 5 objects :earth 6 7 take radius: earth . orbit_radius 8 take speed: earth . orbital_speed 9 take mass: earth . mass 10 11 number = earth . quantum_number 12 answer number :, figures: 2 13 14 conclusion "Angular momentum comes in steps of Planck's constant over two pi, but the earth's is so vast that the " \ 15 "steps are far too fine to notice: quantum rules fade into classical ones at large sizes." 16 end
1 require_relative "../solutions/the_earth_s_quantum_number" 2 3 play_with :the_earth_s_quantum_number do 4 title "The Earth's Quantum Number" 5 end