]> git.rkrishnan.org Git - sicp.git/blob - src/sicp/ex3_75.rkt
Solution to 4.30. Extremely enlightening!
[sicp.git] / src / sicp / ex3_75.rkt
1 #lang racket
2
3 #|
4
5 The procedure find average of the current sensor value with the last average value. This
6 is wrong. the symbol 'last-value' is used differently in different places. In the average
7 calculation, this should be the last sensor value. In the sign-change-detector this should
8 be last average value.
9
10 Solution is for the make-zero-crossing to accept the last-average-value as another parameter.
11
12 |#