question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :between_two_charged_plates do 4 kind :numerical 5 describes "Two large, thin metal plates are parallel and close to each other. On their inner faces, the plates " \ 6 "have surface charge densities of opposite signs and of magnitude %{density}. %{field}, in N/C?" 7 given density: "17.0e-22 C/m2" 8 asks field: "What is E between the plates" 9 end
1 require_relative "../questions/between_two_charged_plates" 2 require_relative "../science/electric_charges_and_fields/gausss_law" 3 4 solve :between_two_charged_plates , using: GausssLaw do 5 objects :plates 6 7 take density: plates . surface_charge_density 8 9 field = plates . field_between_plates 10 answer field :, in: "N/C" , figures: 3 11 12 conclusion "Between the plates the fields of the two opposite sheets of charge add, giving the charge density " \ 13 "over the permittivity of free space; outside they cancel." 14 end
1 require_relative "../solutions/between_two_charged_plates" 2 3 play_with :between_two_charged_plates do 4 title "Between Two Charged Plates" 5 end