For a glass, the refractive index depends on the wavelength: , with in micrometres. You will make the program find for seven colours, follow each through a prism at , and measure how wide the spectrum is. Then it draws the deviation against the wavelength.
Your tasks.
n for the wavelength lam (given in nanometres).spread, the deviation of the last colour (violet) minus that of the first (red).most, the name of the colour that is bent the most.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…