diff options
author | root <root@eta.mit.edu> | 2009-01-27 14:52:07 -0500 |
---|---|---|
committer | root <root@eta.mit.edu> | 2009-01-27 14:52:07 -0500 |
commit | 103a61bcf8648c50b5999cdb526464d44c75dfe1 (patch) | |
tree | 8d6df95240f60fe3b3c7aa86f057c104b86908c1 /other/henon-demos.scm | |
parent | a0c4bdb02f19d6a0d17bbea9496c30e96754235b (diff) | |
download | 8thesis-103a61bcf8648c50b5999cdb526464d44c75dfe1.tar.gz 8thesis-103a61bcf8648c50b5999cdb526464d44c75dfe1.zip |
Added some demo files, journal, tweaks
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) + + |