You will write three functions for Young's double slit.
The idea. The fringe width is . The th bright fringe is at from the centre. The th dark fringe is at , counting the dark fringe nearest the centre as the first.
Your tasks.
fringe_width, return in mm for a wavelength in nm, a slit distance d in mm and a screen distance D in m.bright_position, return the distance in mm of the nth bright fringe from the centre.dark_position, return the distance in mm of the nth dark fringe from the centre.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…