From f8324dd7d1ac936bc8654b8ac2cd3ff562d24b9e Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 2 Jun 2014 11:48:46 -0400 Subject: [PATCH] Exercise 1.43 --- 1-3.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/1-3.org b/1-3.org index c87a6a4..bb89ff6 100644 --- a/1-3.org +++ b/1-3.org @@ -635,6 +635,18 @@ layout: org Hint: You may find it convenient to use `compose' from *Note Exercise 1-42::. + ---------------------------------------------------------------------- + + #+begin_src scheme :tangle yes + ;; ------------------------------------------------------------------- + ;; Exercise 1.43 + ;; ------------------------------------------------------------------- + + (define (repeated f times) + (if (= times 1) + (lambda (x) (f x)) + (compose f (repeated f (- times 1))))) + #+end_src ** Exercise 1.44 The idea of "smoothing" a function is an important concept in signal processing. If f is a function and dx is some small number,