Académique Documents
Professionnel Documents
Culture Documents
NAVIGATIONAL LINKS:
C ourse W e b Site
C om pute r Ex e rcise s
RELATED EXERCISES:
Logistic Ma p
Invariant Measures
Fractal Dimensions
FILES
Le cture on C ha os a nd
Lya punov Ex pone nts /
Inva ria nt Me a sure
P ython:
Logistic iteration hints
Logistic iteration answer and demo
LINKS
Background
We have five exercises on discrete maps. This one develops the main tools, and should be done
before the other four.
Often models of nature have a discrete deterministic structure. A classic example is in population
dynamics, where one hypothesises that the number of rabbits in year xn is simply a function of
the number in the previous year:
P ython na notutoria ls
Sta rting up a ne w P ython
proje ct unde r Linux
P ython se tup info
C ourse W e b P a ge
R obe rt M. Ma y,
"Sim ple m a the m a tica l
m ode ls with ve ry
com plica te d dyna m ics"
, Na ture 261, 459-467
(1976).
xn+1 = f(xn ).
If f(x) is linear one has the logistic equation, and the number of rabits grows exponentially. This
is a reasonable model if there are infite resources no preditors. The next most sophisticated model
would be to add a nonlinear term representing either the finite resources or the role of preditors.
This gives the logistic map
Learning Goals
Science: You will learn about Chaos and discrete maps.
Com putation: You will learn about iterative algorithms.
Procedure
x0,
nTransient,
nCycle,
muArray,
g -- a function
x0 -- the starting value for the iterates
nTransients -- an integer
nCycle -- another integer
muArray -- a list of mu values
showPlot -- True/False
For each value of mu in muArray, this function should iterate g, starting a x0. It throws
away the first nTransient iteratates. It then stores the next nCycle iterates. It then
makes a plot where the x-axis is the values of mu, and the y-axis are the values of x.
12. Try the following parameters:
BifurcationDiagram(f, 0.1, 500, 500, scipy.linspace(0., 1.00001, 200))
BifurcationDiagram(f, 0.1, 500, 500, scipy.linspace(0.85, 1.00001, 300))
BifurcationDiagram(f, 0.1, 500, 500, scipy.linspace(0.96, 0.97, 400))
13. To explore this structure in more detail see Fractal Dimensions
James P. Sethna, Christopher R. Myers, Erich J. Mueller.
L a s t mo d ifie d : Ju ly 2 0 1 2