Errata for Picturing Programs -- 4

© Stephen Bloch 2010

Sept. 4, 2010

p. 127: The test cases for green-function have wrong "right answers":

(check-expect (green-function 10 20 30 40 50) 0)
(check-expect (green-function 1000 100 250 125 0) 0)
should be
(check-expect (green-function 10 20 30 40 50) 40)
(check-expect (green-function 1000 100 250 125 0) 125)
The definition of the function is correct.