Skip to content

Instantly share code, notes, and snippets.

@kouddy
Created April 15, 2015 10:47
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 kouddy/691671edf9686dbb5c02 to your computer and use it in GitHub Desktop.
Save kouddy/691671edf9686dbb5c02 to your computer and use it in GitHub Desktop.
(define (horner-eval x coefficient-sequence)
(accumulate (lambda (this-coeff higher-terms) (+ this-coeff (* higher-terms x)))
0
coefficient-sequence))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment