diff options
Diffstat (limited to 'other/henon-demos.scm')
-rw-r--r-- | other/henon-demos.scm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/other/henon-demos.scm b/other/henon-demos.scm new file mode 100644 index 0000000..c00e3fc --- /dev/null +++ b/other/henon-demos.scm @@ -0,0 +1,15 @@ +;;;;;;; problem 3.13 + +(define ((henon-map alpha) x y return failure) + (if (or (> x 1) (< x -1) (> y 1) (< y -1)) + failure) + (return (- (* x (cos alpha)) + (* (- y (square x)) (sin alpha))) + (+ (* x (sin alpha)) + (* (- y (square x)) (cos alpha))))) + +(define window (frame -1. 1. -1. 1.)) + +(explore-map window (henon-map 1.21) 2000) + + |