Diffraction
Interactive simulation — adjust parameters and watch the visualization update in real time.
How it works
Far-field (Fraunhofer) diffraction: each slit contributes a sinc² envelope in angle. Two slits add Young interference cos²(πd sinθ/λ) inside that envelope. Colors in the plot follow the selected wavelength for emphasis; the curve is the relative intensity profile.
Key equations
Single slit: I ∝ sinc²(πa sin θ / λ)
Double slit: I ∝ cos²(πd sin θ / λ) · sinc²(πa sin θ / λ)