You will write three small functions for a spherical mirror. They use the New Cartesian sign convention.
The idea. For a mirror, , and . A real object has a negative . A concave mirror has a negative . A negative means a real image, in front of the mirror. All the distances are in centimetre.
Your tasks.
image_distance, return from and .magnification, return from and .image_kind, return the word "real" when is negative and "virtual" when it is positive.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…