1 ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 ;; about the language level of this file in a form that our tools can easily process.
3 #reader(lib "htdp-intermediate-reader.ss" "lang")((modname 18.8.1) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp") (lib "dir.ss" "teachpack" "htdp") (lib "hangman.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp") (lib "dir.ss" "teachpack" "htdp") (lib "hangman.ss" "teachpack" "htdp")))))
15 [else (even (sub1 an))]))
21 [else (odd (sub1 an))])))
28 (define (f x) (g x (+ x 1)))
29 (define (g x y) (f (+ x y)))
45 (define (f x) (+ (* x x) (* 3 x) 15))
55 (define (f x) (+ (* x x) (* 3 x) 14))
69 [else (even (- an 1))]))
75 [else (odd (- an 1))]))
85 2. (+ (local ((define (f x) (+ (* x x) (* 3 x) 15))
90 3. (local ((define CONST 100)
91 (define f x (+ x CONST)))
92 (define (g x y z) (f (+ x (* y z)))))