The Power of a Lens
Q. If f = 0.5 mm for a glass lens, what is the power of the lens, in dioptres?
Inputs
Outputs
power?
How it's solved
Solved with ThinLens
Given
- m
Find .
Working
- power of a lens(lens)
- D
- m⁻¹D
Conclusion
A lens's power is how strongly it bends light, the inverse of its focal length in metres.
The web of concepts
given read from the words equation asked
The Ruby that solves it
The question and its solution are small Ruby files. The engine runs them.
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"8end1require_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."13endplayground.rb
1require_relative "../solutions/the_power_of_a_lens"23play_with :the_power_of_a_lens do4 title "The Power of a Lens"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| refractive index of the lens | — | — | ThinLens | |
| index of the surroundings | — | — | ThinLens | |
| first radius | m | — | ThinLens | |
| second radius | m | — | ThinLens | |
| size of the second radius | m | — | ThinLens | |
| focal length | m | — | ThinLens | |
| size of the focal length | m | — | ThinLens | |
| power of the lens | m⁻¹ | — | ThinLens | |
| distance in front | m | — | ThinLens | |
| object distance | m | — | ThinLens | |
| image distance | m | — | ThinLens | |
| magnification | — | — | ThinLens | |
| object height | m | — | ThinLens | |
| image height | m | — | ThinLens | |
| object distance of ground | m | — | ||
| distance in front of ground | m | — | ||
| object distance of lens | m | — | ||
| distance in front of lens | m | — | ||
| focal length of ground | m | — | ||
| refractive index of the lens of ground | — | — | ||
| index of the surroundings of ground | — | — | ||
| first radius of ground | m | — | ||
| second radius of ground | m | — | ||
| focal length of lens | m | — | ||
| refractive index of the lens of lens | — | — | ||
| index of the surroundings of lens | — | — | ||
| first radius of lens | m | — | ||
| second radius of lens | m | — | ||
| power of the lens of ground | m⁻¹ | — | ||
| power of the lens of lens | m⁻¹ | — | ||
| image distance of ground | m | — | ||
| image distance of lens | m | — | ||
| magnification of ground | — | — | ||
| magnification of lens | — | — | ||
| image height of ground | m | — | ||
| object height of ground | m | — | ||
| image height of lens | m | — | ||
| object height of lens | m | — | ||
| size of the second radius of lens | m | — | ||
| size of the focal length of lens | m | — |