3 [clojure.contrib trace test-is]))
5 ;; simpson's rule of integration
6 (defn sum [term a next b]
10 (sum term (next a) next b))))
12 (defn simpson-rule [f a b n]
23 (sum simp-term 0 inc n))))
25 ;;; lots of great ideas in the above exercise. lexical closures make it easy to
26 ;;; implement as a and b are constants.