In various areas of photonics, there is a tendency to move from elements of physical optics to elements of flat optics, primarily due to reducing dimensions of instruments and devices. Usually, spatial light modulators are used to quickly output flat phase elements. In this paper, the possibility of replacing the optical system with a computer-generated lens was investigated. The novelty of the work lies in a comparative analysis of point spread functions formed by an optical system and a computer-synthesized lens. Numerous experiments confirm the result.