i : angle of incidencedi : incident wave tiltd : grating pitchlam : wavelengthk : diffraction ordern0 : refraction index of the first mediumn1 : refraction index of the second mediumid : diffraction angledid : diffracted wave tilt