1require_relative "../physics"23question :the_power_of_a_lens do4 kind :numerical5 describes "If f = %{focal_length} for a glass lens, %{power}, in dioptres?"6 given focal_length: "0.5 m"7 asks power: "what is the power of the lens"8end
1require_relative "../questions/the_power_of_a_lens"2require_relative "../science/ray_optics_and_optical_instruments/thin_lens"34solve :the_power_of_a_lens, using: ThinLens do5 objects :lens67 take focal_length: lens.focal_length89 power = lens.power_of_the_lens10 answer power:, in: "D"1112 conclusion "A lens's power is how strongly it bends light, the inverse of its focal length in metres."13end
1require_relative "../solutions/the_power_of_a_lens"23play_with :the_power_of_a_lens do4 title "The Power of a Lens"5end