Chaos in simple systems
This is a program that graphs and displays chaos in Python code.\ It is an example of how Chaos can emerge from simple systems; in this case, a model for population growth.\ The model we will use is known as the Logistic Map:
\(x_{n+1} = rx_n(1-x_n)\)
Here \(x_{n+1}\) represents the population in the next generation.\ \(x_n\) is the current population.\ \(r\) is the rate of reproduction.\ And the amount of resources available is given as \(1-x_n\).
First we import the Python library mathplotlib - this allows us to display our model visually.
Next we define the logistic map equation as a function
Here we set values for the variables.
Then we create a time component, represented by a for loop.