Parameters
i: angle of incidence
d: grating pitch
lam: wavelength
k: diffraction order
ni: refraction index of the first medium
nr: refraction index of the second medium
id: diffraction angle
did: angular spectral dispersion ( variation of diffraction angle for a wavelength shift of + 1 nm )