demoAIDynamics and chaos
The logistic map at r = 4 has Lyapunov exponent ln 2
Iterate . At it settles on two values you can write down. At it never settles, nearby starts separate by a factor of two per step on average, and that factor is exact: the Lyapunov exponent is .
Open in the workbenchDownload .vivOutputs below are from the site build’s run; Run all runs it again in your browser.
Look inside this program
- Atlas
The program’s map: every function and which calls which.
There’s no recorded run of this program yet.
At , substitute and the map becomes : angle doubling, which is where comes from. The two-cycle for solves with the fixed points divided out: .
Printed
reached_a: 0.513045
reached_b: 0.799455
chaos: 0.693145
order: -0.916291
x
r
Tests 3 of 3 pass
- at r = 3.2 the orbit lands on the closed-form two-cycle (passes)
- there the Lyapunov exponent is negative: nearby starts converge (passes)
- at r = 4 it is ln 2 (passes)