Exercises in this lecture   Go to the notes, in which this exercise belongs -- Keyboard shortcut: 'u'   Alphabetic index   Course home   

Exercise solution:
Generation of approximations to differentiated functions


(define (derivative f) (lambda (x) (let ((h 0.000001)) (/ (- (f (+ x h)) (f x)) h)))) (map (derivative (lambda (x) (* x x))) (list 1.0 2.0 3.0 4.0 5.0)) (map (lambda (x) (* 2 x)) (list 1.0 2.0 3.0 4.0 5.0))