** Note this visualization takes 60s to execute **
Chaotic dynamics can be easily simulated using the Logistic Map. Given the equation:
f(x) = \lambda x (1 - x)
Define the discrete dynamics by:
This visualization looks at these dynamics in two ways:
As we vary the value of \lambda in the equation above and examine the long term value of f^n(x0) (see plot on left, the x-axis is \lambda), around \lambda = 3 the value goes from converging to a fixed point to going between two numbers (period 2). As we further increase \lambda the period goes from 4, 8, 16, ..., to all over the place (chaos). Every once in awhile you will see it go periodic again, and this number can even be odd (1,3,5,..). The diagram on the left illustrates this behavior and is called the bifurcation diagram. There are many properties for this diagram that are fun to explore.
Modified http://d3js.org/d3.v3.js to a secure url
https://d3js.org/d3.v3.js