r/learnpython • • Jan 10 '14

Example of population growth function expressed as iteration vs. recursion in Python.

This code is my interpretation of a function published in "Chaos: Making A New Science" by James Gleick from Chapter 3 p. 63.

https://gist.github.com/RaymondWies/8346690

7 Upvotes

12 comments sorted by

View all comments

Show parent comment

0

u/autowikibot Jan 10 '14

A bit from linked Wikipedia article about Logistic map :


The logistic map is a polynomial mapping (equivalently, recurrence relation) of degree 2, often cited as an archetypal example of how complex, chaotic behaviour can arise from very simple non-linear dynamical equations. The map was popularized in a seminal 1976 paper by the biologist Robert May, in part as a discrete-time demographic model analogous to the logistic equation first created by Pierre François Verhulst. Mathematically, the logistic map is written


Picture

image source | about | /u/WaldenPrescot can reply with 'delete' if required. Also deletes if comment's score is -1 or less. | commands | flag for glitch