When trying to redeem polynomials using the Horner Rule, I have an example code segment, for example:
int Horner( int a[], int n, int x )
{
int result = a[n];
for(int i=n-1; i >= 0 ; --i)
result = result * x + a[i];
return result;
}
I understand that ais an array of coefficients and that xis a value that I would like to evaluate in. My question is: what is it for n?
source
share