Exercise 3.59

Read Exercise 3.59 ~ Solution 59a


a

(define (integrate-series coeffs)
  (stream-map / coeffs integers))

b

Solution 59b

(define cosine-series
  (cons-stream 1 (integrate-series sine-series)))
(define sine-series
  (cons-stream 0 (scale-stream (integrate-series cosine-series) -1)))

This chapter gets more and more mind-expanding.

Leave a comment