We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(define (solve f y0 dt) (define y (integral (delay dy) y0 dt)) (define dy (stream-map f y)) y)
print y: undefined; cannot use before initialization
y: undefined; cannot use before initialization
The text was updated successfully, but these errors were encountered:
Please see Footnote 71 in the book, which states that you should see Section 4.1.6 and perhaps Exercise 4.18 :)
If you really want it to work without code transformation, try:
(define (solve f y0 dt) (define y (integral (delay (force dy)) y0 dt)) (define dy (delay (stream-map f y))) y)
Sorry, something went wrong.
thanks
Alternative solution:
(define (solve f y0 dt) (define y (integral-proc (delay (dy)) y0 dt)) (define (dy) (stream-map f y)) y)
No branches or pull requests
print
y: undefined; cannot use before initialization
The text was updated successfully, but these errors were encountered: