### post: The logistic map at r = 4 has Lyapunov exponent ln 2 date: 2026-09-21 channel: dynamics tags: chaos, maps equation: \lambda = \lim_{n \to \infty} \frac{1}{n}\sum_{k r x (1 - x), by r", "r", "x", 2.8, 4.0, 0.0, 1.0, "pixels") plot2d(visits, "visits, capped at 8") test "at r = 3.2 the orbit lands on the closed-form two-cycle" { assert_near(reached_a, exact_a, 1.0e-12) assert_near(reached_b, exact_b, 1.0e-12) } test "there the Lyapunov exponent is negative: nearby starts converge" { assert_lt(order, 0.0) } test "at r = 4 it is ln 2" { assert_near(chaos, log(2.0), 5.0e-3) } # SPDX-License-Identifier: MIT OR Apache-2.0 # SPDX-FileCopyrightText: 2026 The Viv authors