The Logistic Map


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. def logistic_map(x0, r, n):
  2. if n == 0: return x0
  3.  
  4. xprev = logistic_map(x0, r, n - 1)
  5. return r * xprev * (1 - xprev)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.