1 2 3 4 5 6 7 8 9 10 11 12 13 14
double foo (double x, double *cof) { int i; double tmp, value; for (i = 10; i >= 0; i--) { value += cof[i] / tmp; tmp -= 1.0; } return value; }