A prism has . You will make the program find the deviation for every angle of incidence from to , find the smallest deviation and where it happens, and check that the path is symmetric there. Then it draws the deviation against the angle of incidence.
Your tasks.
dev, the deviation, from i, e and A.least, the smallest deviation, and at, the angle of incidence where it happens.gap, the difference between the angle of emergence and the angle of incidence at that place.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…