long *degree; double *coef; double *x; double *y;
Degree of polynomial to be evaluated. Valid degrees are 1 through 4.
Array of polynomial coefficients.
X coordinate at which to evaluate polynomial.
Y coordinate at which to evaluate polynomial.
c_eval() evaluates a polynomial at a given (x,y) coordinate. The degree of the polynomial may be 1st, 2nd, 3rd, or 4th order and the polynomial coefficients are given in the coef array. The polynomial is of the form:
x' = a0 + a1x + a2y + a3xy + ... + a14y**4To evaluate a bivariate polynomial, two calls to c_eval() are made, one for the x' part of the coordinate and one for the y' part of the coordinate.
The c_eval() call is for C only.