Skip to content

Instantly share code, notes, and snippets.

@aaz
Created January 11, 2014 12:01
Show Gist options
  • Save aaz/8370126 to your computer and use it in GitHub Desktop.
Save aaz/8370126 to your computer and use it in GitHub Desktop.
Example taken from SFI Introduction to Dynamical Systems, Unit 1 homework, Q4 in the beginner section.
;; Define the function h
(defn h [x] (+ (* 0.5 x) 10))
;; Show the first 7 values of the iteration of function h with seed 4
(take 7 (iterate h 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment