Skip to content

Instantly share code, notes, and snippets.

@benforeva
Last active August 29, 2015 14:07
Show Gist options
  • Save benforeva/519735225d2ab9842d44 to your computer and use it in GitHub Desktop.
Save benforeva/519735225d2ab9842d44 to your computer and use it in GitHub Desktop.
Logistic Map
(defn logismap [x0 n R]
(loop [acc x0 cnt 0]
(if (= cnt n)
acc
(recur (* R acc (- 1 acc)) (inc cnt)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment