The problem of determination of refractive indices for layered medium under known outgoing radiation is considered. It is assumed, that the Stokes parameters of radiation at the boundary of medium are known. To solve the problem, we propose a special indicator function. This function has singularity as its argument tends to unknown values of the refractive index. The results of numerical experiments are discussed.