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

Dynamics and chaos

Maps

demoAIDynamics and chaoswritten with an agent#fddf6988ff

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 .

Attractor of x -> r x (1 - x), by r
x
r
100 × 160 grid
✓ 3 tests passchecked when the site was built#chaos#maps
ReadOpen in the workbench

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

demoAIDynamics and chaoswritten with an agent#9f5b98166a

Pi from escape counts at the cusp of the Mandelbrot set

Start just right of the cusp, at , and count the steps of until . Multiply the count by . It tends to .

Steps to escape, times ϵ
Nϵπ
3.003.053.103.1510⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²ϵNϵ
✓ 3 tests passchecked when the site was built#fractals#dynamics
ReadOpen in the workbench

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Mechanics

demoAIDynamics and chaoswritten with an agent#2d7a1da607

A Lennard-Jones liquid by molecular dynamics in two dimensions

100 atoms in a periodic box, velocity Verlet, no thermostat. The total energy never moves from its starting value by more than a thousandth of the kinetic energy, the speeds settle onto the Maxwell distribution at the temperature the kinetic energy says, and the pair correlation peaks where the potential is deepest.

100 Lennard-Jones atoms, periodic box

 

0.0 / 10.0 s
Speeds over the second half of the run, against Maxwell at the measured temperature
measuredMaxwell, 2-D
00.20.40.60.800.51.01.52.02.5speeddensity
The pair correlation g(r)
g(r)an ideal gas
012312345rg
✓ 4 tests passchecked when the site was built#molecular-dynamics#statistical-mechanics
ReadOpen in the workbench

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Circuits

The double scroll of Chua's circuit

Two capacitors, an inductor, a resistor and one diode whose current is a three-piece straight line. The voltages never settle and never repeat: they wind around two centers, hopping between them at irregular times. Nearby starts separate like with , which is what a separate scipy calculation gives within the scatter expected of a run this long.

The Chua diode's current: three straight pieces
g(x)
−202−3−2−10123voltage xcurrent g(x)
The voltage x over 100 time units
x(t)
−20220406080timex
The double scroll, seen along z
(x, y) over 210 time units
−0.4−0.200.20.4−2−1012xy
the double scroll in (x, y, z): drag to rotate
drag to rotate · x [-2.24, 2.24] · y [-0.4, 0.4] · z [-3.18, 3.18]
The running estimate of the largest Lyapunov exponent
ln(d / d0) summed, over elapsed timescipy's value, give or take one 600-unit run's spread
00.20.40.6100200300400500600timeλ estimate
✓ 5 tests passchecked when the site was built#chaos#circuits#lyapunov-exponents#odes
ReadOpen in the workbench

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.