Biquadratic function will be called a function of two variables of the form:
(-1,-1) ( 0,-1) ( 1,-1) f0[0] f0[1] f0[2]
(-1, 0) ( 0, 0) ( 1, 0) -> f1[0] f1[1] f1[2]
(-1, 1) ( 0, 1) ( 1, 1) f2[0] f2[1] f2[2]
The extremums of the function must satisfy the system of equations:
df/dx = 0
df/dy = 0
или
Thus, finding extrema biquadratic funtion is reduced to the solution of 5th degree polynomial.
In the present module offers a single function
double minBiQuad(double *f0, double *f1, double *f2, double delta, double &xm, double &ym);It is according to the nine values of the function
(-1,-1) ( 0,-1) ( 1,-1) f0[0] f0[1] f0[2]
(-1, 0) ( 0, 0) ( 1, 0) -> f1[0] f1[1] f1[2]
(-1, 1) ( 0, 1) ( 1, 1) f2[0] f2[1] f2[2]
finds the minmum point (xm,ym) on the square