sicp-ex-3.78



<< Previous exercise (3.77) | Index | Next exercise (3.79) >>


meteorgan

  
  
  
 (define (solve-2nd a b dt y0 dy0) 
         (define y (integral (delay dy) y0 dt)) 
         (define dy (integral (delay ddy) dy0 dt)) 
         (define ddy (add-streams (scale-stream dy a) (scale-stream y b))) 
         y)