Logistic¶
Systems / Maps / Population maps
The logistic map — one quadratic line whose period-doubling cascade is the textbook road to chaos.
Start here¶
import tsdynamics as ts
system = ts.systems.Logistic()
traj = system.run(steps=2_000, seed=0)
ts.plot(traj)
traj.t contains the sample times and traj.y the state array; system.info shows the defaults. In a notebook the last line displays the plot. In a Python script, call .show() on it to open a window, or .save("trajectory.svg") to export it.
steps counts map iterations; there is no integration step size.
This finite simulation illustrates one initial condition and view. The diagnostics below report their own inputs and observation windows.
Dynamics at the default parameters¶
Lyapunov exponents measure separation rates along an orbit. The Kaplan–Yorke dimension is derived from those rates, not a direct geometric measurement. Finite runs depend on the initial condition, transient and observation window; a value near zero needs a convergence check.
per iteration
Method and evidence
Benettin QR tangent dynamics
Finite-time estimate, not a convergence certificate. All state-space directions were computed.
Settings
{
"backend": "jit",
"k": 1,
"n": 20000,
"transient": 0,
"ic": [
0.49083151576189277
]
}
Preparation
{
"steps": 500,
"seed": 768291307,
"ic": [
0.2
]
}
Estimator runtime in the recorded environment: 0.0008 s.
Reference target and the library's check configuration, separate from the measurement above. The source identifies the target; kwargs, ic and atol describe the local validation run. They are not published confidence intervals or a claim that the source used those solver settings.
{
"status": "reference",
"params": {
"r": 4.0
},
"spectrum": [
0.6931
],
"atol": [
0.15
],
"kwargs": {
"steps": 10000
},
"source": "exact result at r = 4",
"citation": "May (1976), Nature 261, 459-467"
}
Method and evidence
Kaplan–Yorke interpolation of the recorded spectrum
Lyapunov dimension estimate; equality with a fractal or information dimension requires additional dynamical assumptions.
Settings
{
"backend": "jit",
"k": 1,
"n": 20000,
"transient": 0,
"ic": [
0.49083151576189277
]
}
0 stable · 2 unstable · 0 marginal / undetermined
Method and evidence
A seeded numerical search, not a completeness proof. Stability means linear asymptotic stability. Marginal/nonhyperbolic roots have no nonlinear stability verdict from this linearisation.
max Re(eigenvalue) for flows; max |multiplier| - 1 for maps. Boundary band: 1e-7 * max(1, max |eigenvalue|).
Settings
{
"method": "newton",
"n_seeds": 80,
"seed": 0
}
Estimator runtime in the recorded environment: 0.0151 s.
Recorded parameters and software
{
"parameters": {
"r": 3.9
},
"parameter_expressions": {},
"state_dimension": 1,
"explicit_time": false,
"library_version": "6.0.3",
"python": "3.14.8",
"numpy": "2.4.4",
"scipy": "1.17.1",
"protocol_version": 1
}Definition¶
Parameters¶
| Symbol | Default | Role |
|---|---|---|
r |
3.9 |
growth rate (the bifurcation parameter) |
State variables: x
Explore further¶
- Lyapunov spectra and Kaplan–Yorke dimension — measure separation rates, then check convergence with a longer run.
- Fixed points and stability — find the equilibria or fixed points that organize the dynamics.
- Plotting and export — choose components, style a figure, or save it for a paper.
- Find a compatible analysis with
ts.analysis.find(system)orts.analysis.find(traj).
Reference¶
May (1976), Nature 261, 459-467
doi:10.1038/261459a0