You will write three small functions about thin lenses.
The idea. In the New Cartesian convention a real object has a negative distance . The thin lens formula is . Two lenses a gap apart have the power , with in metre. The lens maker's formula is . A flat face has an infinite radius.
Your tasks.
image_distance, return the image distance from and .pair_power, return the power of two lenses in dioptre, with the gap in metre.focal_length, return the focal length from , and .Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…