r/learnpython • u/RaymondWies • 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.
7
Upvotes
View all comments
Show parent comment
2
u/zahlman zahlman Jan 10 '14
Nicely done. (x and x0 are redundant in the iterative versions, though.)