This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

← Posts

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 .

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
Attractor of x -> r x (1 - x), by r
x
r
100 × 160 grid

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)

Checked when the site was built: 3 of 3 tests passed, in 0.48 s. Download 2026-09-21-logistic-lyapunov.viv