Published October 24, 2026 | Version v1

Code and data for "Random-walk scaling without Bernoulli statistics: transport, persistence and resonances in the triangle map"

  • 1. ROR icon University of Bologna

Description

Code and archived data for the paper "Random-walk scaling without Bernoulli statistics: transport, persistence and resonances in the triangle map" by M. Degli Esposti.

The archive contains a Python/Numba package for the Casati–Prosen triangle map
p' = (p + α θ(q) + β) mod 1, q' = (q + p') mod 1, with θ = +1 on [0, 1/2) and −1 on [1/2, 1),
a parabolic model of the irrational triangular billiard, together with the numerical experiments and the data needed to redraw every figure of the paper and its Supplementary Material.

Contents:
- src/triangle_map/: the package, including the exact-lift integrator (exact_phase.py) used for β = 0, in which the phase is recomputed at every step from a closed form so that rounding errors do not accumulate; exact polygonal cylinder partitions; enumeration of zero-sum-word resonances; an arbitrary-precision (mpmath) reference implementation.
- tests/: unit tests, including comparison with mpmath orbits.
- experiments/: the numerical experiments (argparse scripts) on Birkhoff-sum variance, correlations and spectra, first passages, return-map Markov hierarchies, Fourier-mode correlations, worst-case Birkhoff averages, the asymmetric deformation of the symbol and the map of the diffusion coefficient D(α, β).
- paper/figures/: figure scripts and the archived CSV data they read (each figure is redrawn with NumPy and Matplotlib only).

Requirements: Python ≥ 3.10, NumPy, Numba, mpmath, SciPy, pandas, Matplotlib. See README.md for installation and a table mapping figures to scripts and data.

Code released under the MIT License; data may be reused with attribution.

Files

triangle-map-v1.0.zip

Files (1.2 MB)

Name Size
md5:4c28ffa1ff8c563597f4ba991232e6aa
1.2 MB Preview Download

Additional details

Related works

Is supplement to
Preprint: arXiv:2610.34179 (arXiv)