Blame


1 12687dd9 2023-08-04 jrmu ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 12687dd9 2023-08-04 jrmu ;; about the language level of this file in a form that our tools can easily process.
3 12687dd9 2023-08-04 jrmu #reader(lib "htdp-intermediate-reader.ss" "lang")((modname 18.2.1) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "draw.ss" "teachpack" "htdp")))))
4 12687dd9 2023-08-04 jrmu (define (p1 x y)
5 12687dd9 2023-08-04 jrmu (+ (* x y)
6 12687dd9 2023-08-04 jrmu (+ (* 2 x)
7 12687dd9 2023-08-04 jrmu (+ (* 2 y) 22))))
8 12687dd9 2023-08-04 jrmu
9 12687dd9 2023-08-04 jrmu (define (p2 x)
10 12687dd9 2023-08-04 jrmu (+ (* 55 x) (+ x 11)))
11 12687dd9 2023-08-04 jrmu
12 12687dd9 2023-08-04 jrmu (define (p3 x)
13 12687dd9 2023-08-04 jrmu (+ (p1 x 0)
14 12687dd9 2023-08-04 jrmu (+ (p1 x 1) (p2 x))))