Parameters
lam : wavelength
i : angle of incidence
d : grating pitch
k : diffraction order
D : incident wave size in the direction perpendicular to the diffraction lines
fi : effective focal length of the lens( fi is positive as the lens is converging )
dy : width of the diffracted wave in the focal plane of the lens
Res : theoretical resolvance of the grating