Skip to content

Instantly share code, notes, and snippets.

@jagbolanos
Created April 23, 2014 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagbolanos/11215513 to your computer and use it in GitHub Desktop.
Save jagbolanos/11215513 to your computer and use it in GitHub Desktop.
float horner(float A[], float x, int n) {
float resultado = A[n];
for (int i=n-1; i>=0 ; i--) {
resultado = resultado * x + A[i];
}
return resultado;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment