Diffraction
Diffraction
Diffraction is the bending and spreading of waves around obstacles or through openings. When the opening size is comparable to the wavelength, the effect becomes dramatic.
Single-Slit Diffraction
For a slit of width illuminated by monochromatic light of wavelength , dark fringes (minima) appear at angles satisfying:
The first minimum (smallest angle) occurs at:
The central bright maximum has width — it is twice as wide as the other maxima.
Example: , :
Diffraction Grating
A diffraction grating has thousands of slits per millimeter. For grating spacing (distance between adjacent slits), bright maxima occur at:
Solving for the angle of the -th order maximum:
Diffraction gratings are used in spectrometers to separate light into its component wavelengths with high precision.
Example: , (500 lines/mm), :
Your Task
Implement the two angle formulas. Use math.asin and math.degrees. Wavelengths are in nm; slit widths/spacings are in micrometers (m).