From 103a61bcf8648c50b5999cdb526464d44c75dfe1 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Jan 2009 14:52:07 -0500 Subject: Added some demo files, journal, tweaks --- other/henon-demos.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 other/henon-demos.scm (limited to 'other/henon-demos.scm') 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) + + -- cgit v1.2.3