You will write three functions for thin films and for a sheet over a slit.
The idea. A film in air is bright in reflection when . A coating of index on glass cancels the reflection of when . A sheet of index and thickness over one slit shifts the pattern by .
Your tasks.
ar_thickness, return the least thickness in nm of a coating of index n that cancels the reflection of wavelength in nm.visible_bright, return a list of the wavelengths in nm, from to , that a film of index n and thickness t in nm reflects strongly. Round each to decimal and give the list from the shortest to the longest.sheet_shift, return the shift of the pattern in mm. The thickness t is in micrometre, D in m and d in mm.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…