question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :the_electron_s_frequency_of_revolution do 4 kind :numerical 5 describes "In a chamber, a uniform magnetic field of %{field} is maintained. An electron is shot into the field " \ 6 "with a speed of %{speed} normal to the field, and goes round a circular orbit. %{frequency}, in MHz? " \ 7 "(mₑ = %{mass})" 8 given field: "6.5 G" 9 given speed: "4.8e6 m/s" 10 given mass: "9.1e-31 kg" 11 asks frequency: "Obtain the frequency of revolution of the electron in its circular orbit" 12 end
1 require_relative "../questions/the_electron_s_frequency_of_revolution" 2 require_relative "../science/moving_charges_and_magnetism/magnetic_force" 3 4 solve :the_electron_s_frequency_of_revolution , using: MagneticForce do 5 objects :electron 6 7 take field: B 8 take speed: electron . speed 9 take mass: electron . mass 10 11 deduce_from "An electron is shot" , electron . charge => e 12 13 frequency = electron . frequency_of_revolution 14 answer frequency :, in: "MHz" , figures: 2 15 16 conclusion "A faster electron circles a wider orbit in the same time, so the frequency does not depend on the " \ 17 "speed, only on the field and the electron's charge and mass." 18 end
1 require_relative "../solutions/the_electron_s_frequency_of_revolution" 2 3 play_with :the_electron_s_frequency_of_revolution do 4 title "The Electron's Frequency of Revolution" 5 end