A probability is calculated for a given wavelength, dispersion angle and order, according to
where
is the width of the spectral channels in
dispersion angles,
is the groove spacing of the gratings,
is
the spectral order,
is the wavelength, and
is the dispersion angle for unscattered light.
The function returns a flat distribution of
channels, with
constant probability per channel of
.