You will write three small functions about the displacement method and lenses in other media.
The idea. The displacement method gives . In a liquid, . A thin lens with the index on its left and on its right has and . All lengths are in centimetre.
Your tasks.
bessel_focal_length, return the focal length in centimetre.focal_length_in_medium, return the focal length of the lens in the liquid.image_distance, return the distance of the image for a lens with different media on its two sides.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…