Аннотация:The problem of wave diffraction on a multilayer grating is considered. Numerical technique based on a combination of the incomplete Galerkin method and scattering matrix method is applied. The problem of scattering matrix singularity in the case when a new diffraction order appears is treated in detail and the singularity-free expressions for the scattering matrix are introduced.