sicp/2_34.sch

6 lines
176 B
Plaintext
Raw Normal View History

2021-11-30 22:33:15 +00:00
(define (horner-eval x coefficient-sequence)
(accumulate (lambda (this-coeff higher-terms)
(+ (* higher-terms x) this-coeff))
0
coefficient-sequence))