You will write three functions for a diffraction grating.
The idea. A grating with lines in each millimetre has the line distance nm. The bright orders are at . An order exists only if this is less than .
Your tasks.
spacing, return the distance between the lines in nm.order_angle, return the angle of order m in degrees, or None if the order does not exist.highest_order, return the highest order that can be seen. An order with exactly is not seen.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…