Solution to SICP Exercise 1.40

Structure and Interpretation of Computer Programs

Solution to Exercise 1.40:

(define (cubic a b c)
(lambda (x) (+ (* x x x)
(* a x x)
(* b x)
c)))

Advertisements