Chapter 1, Building Abstractions with Procedures

Section - Formulating Abstractions with Higher-Order Procedures

Exercise 1.40


1
2
3
4
5
(define (cubic a b c)
      (define (cube x) (* x x x))
      (define (square x) (* x x))
      (lambda (x) (+ (cube x) (* a (square x)) (* b x) c))
)