Posted By

clementi on 09/01/10


Tagged


Versions (?)

The Logistic Map


 / Published in: Python
 

  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  

You need to login to post a comment.