A computer-implemented method for determining an eyeglass prescription for an eye, the method comprising the steps of: Receiving information about a measurement indicative of the refractive properties of the eye; and Determining a mathematical representation of wavefront aberrations of the eye from the measurement, wherein the mathematical representation comprises a multitude of polynomials, each polynomial having an azimuthal order and a radial order, wherein the mathematical representation comprises at least a first polynomial group having a common radial order, wherein the common radial order is higher than two; and Determining the eyeglass prescription based on a merit function, wherein the merit function comprises at least one polynomial of the mathematical representation, and wherein each polynomial of the first polynomial group that is used in the merit function has an azimuthal order of -2, 0 or 2, the method being characterized by : Establishing an optimization space corresponding to a plurality of possible eyeglass prescriptions for the eye; and wherein the eyeglass prescription is determined by optimizing a value of the merit function, wherein the value of the merit function corresponds to a visual function of the eye when corrected using one of the plurality of possible eyeglass prescriptions within the optimization space; wherein the mathematical representation is determined using Zernike polynomials, the mathematical representation includes Zernike polynomials up to and including seventh radial order, wherein the merit function is based only on Zernike polynomials of the second radial order and Zernike polynomials having a radial order higher than two, and wherein the merit function includes the nine Zernike polynomials having an azimuthal order of -2, 0 and 2, respectively. Receiving information about a measurement indicative of the refractive properties of the eye; and Determining a mathematical representation of wavefront aberrations of the eye from the measurement, wherein the mathematical representation comprises a multitude of polynomials, each polynomial having an azimuthal order and a radial order, wherein the mathematical representation comprises at least a first polynomial group having a common radial order, wherein the common radial order is higher than two; and Determining the eyeglass prescription based on a merit function, wherein the merit function comprises at least one polynomial of the mathematical representation, and wherein each polynomial of the first polynomial group that is used in the merit function has an azimuthal order of -2, 0 or 2, the method being characterized by : Establishing an optimization space corresponding to a plurality of possible eyeglass prescriptions for the eye; and wherein the eyeglass prescription is determined by optimizing a value of the merit function, wherein the value of the merit function corresponds to a visual function of the eye when corrected using one of the plurality of possible eyeglass prescriptions within the optimization space; Establishing an optimization space corresponding to a plurality of possible eyeglass prescriptions for the eye; and wherein the eyeglass prescription is determined by optimizing a value of the merit function, wherein the value of the merit function corresponds to a visual function of the eye when corrected using one of the plurality of possible eyeglass prescriptions within the optimization space; wherein the mathematical representation is determined using Zernike polynomials, the mathematical representation includes Zernike polynomials up to and including seventh radial order, wherein the merit function is based only on Zernike polynomials of the second radial order and Zernike polynomials having a radial order higher than two, and wherein the merit function includes the nine Zernike polynomials having an azimuthal order of -2, 0 and 2, respectively. <EOS>