You will write three small functions for a single slit.
The idea. The dark places of a single slit are at . The central maximum is twice as wide as the distance to the first dark place. The intensity as a fraction of the centre is , with , and it is at .
Your tasks.
central_width, return the width of the central maximum in mm. The wavelength is in nm, the slit width a in mm and the distance D in m.minimum_position, return the distance of dark place number n from the centre, in mm.relative_intensity, return , and return when is .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…