Expand description
Dynamical systems analysis: ODE fixed points, Lyapunov exponents, bifurcations, phase plane, Poincaré sections, strange attractors, chaos indicators (RQA), Hamiltonian systems, KAM tori, and symplectic integration.
All arithmetic uses plain f64 and [f64; 3] arrays — no nalgebra.
Structs§
- Bifurcation
Event - Result of a bifurcation scan along one parameter.
- Brusselator
- Brusselator chemical oscillator.
- Double
Pendulum - Double pendulum with equal masses
m=1and lengthsl=1. - Duffing
Oscillator - Duffing oscillator:
- Fixed
Point Result - Result of a fixed-point search.
- Hamiltonian
Ode - Wrap a
HamiltonianSystemas a plainOdeSystem. - Harmonic
Oscillator Ham - 1-DOF simple harmonic oscillator:
H = p²/2 + ω²q²/2. - Kuramoto
Model - Kuramoto model of
ncoupled phase oscillators. - Limit
Cycle Estimate - Result of a limit-cycle period estimate.
- Lorenz
System - The Lorenz strange attractor.
- Poincare
Crossing - Record of a single Poincaré crossing.
- Poincare
Section Config - Configuration for a Poincaré section.
- Rossler
System - The Rössler system, a simpler strange attractor.
- RqaParams
- Parameters for RQA computation.
- RqaResult
- Results of a recurrence quantification analysis.
- VanDer
Pol - Van der Pol oscillator:
Enums§
- Bifurcation
Type - Detected bifurcation type.
Traits§
- Hamiltonian
System - A Hamiltonian system with
ndegrees of freedom. - OdeSystem
- A continuous-time ODE system
ẋ = f(t, x).
Functions§
- add3
- Add two 3-vectors.
- cross3
- Cross product of two 3-vectors.
- delay_
embed - Build the delay-embedded trajectory from a scalar time series.
- detect_
heteroclinic - Check whether two fixed points are connected by a heteroclinic orbit.
- dot3
- Dot product of two 3-vectors.
- eigen2
- Eigenvalues of a real 2×2 matrix
\[\[a,b\\],\[c,d\]]. - energy_
drift - Monitor energy conservation in a Hamiltonian trajectory.
- estimate_
limit_ cycle_ period - Estimate the period of a limit cycle via successive Poincaré crossings.
- estimate_
winding_ number - Estimate the winding number (frequency ratio) of a 2-DOF Hamiltonian orbit on a KAM torus using the mean frequency ratio from angle variables.
- find_
fixed_ point - Find a fixed point of
sys.rhs(0, x) = 0using Newton–Raphson iteration starting fromx0. - forest_
ruth_ step - 4th-order symplectic Forest–Ruth integrator.
- integrate_
rk4 - Integrate an ODE from
t0tot_endwith fixed steph. - integrate_
symplectic - Integrate a Hamiltonian system using the Störmer–Verlet method.
- is_
hopf_ bifurcation - Check whether a 2-D system near a fixed point undergoes a Hopf bifurcation at the given Jacobian parameters.
- kaplan_
yorke_ dim - Estimate the Kaplan–Yorke dimension from sorted Lyapunov exponents.
- lyapunov_
exponents_ qr - Compute the
nLyapunov exponents of ann-dimensional ODE system using the QR-decomposition (Gram–Schmidt) method. - maximal_
lyapunov_ exponent - Compute the maximal Lyapunov exponent (MLE) using the Benettin algorithm.
- norm3
- Euclidean norm of a 3-vector.
- numerical_
jacobian - Compute the Jacobian matrix of
sys.rhsat(t, x)numerically using central differences with stepeps. - phase_
plane_ grid - Compute a vector field on a 2-D grid for phase-plane visualisation.
- pitchfork_
fixed_ points - Analyse a 1-D pitchfork bifurcation (supercritical)
ẋ = μ x − x³. - poincare_
section - Compute a Poincaré section by integrating
sysand recording crossings. - recurrence_
matrix - Compute the recurrence matrix (as a flat
boolvector, row-major). - rk4_
step - Classic 4th-order Runge–Kutta step.
- rqa
- Perform full RQA on a scalar time series.
- saddle_
node_ fixed_ points - Analyse a 1-D saddle-node bifurcation
ẋ = μ + x². - scale3
- Scale a 3-vector by a scalar.
- stability_
2d - Stability classification of a 2-D fixed point given the Jacobian entries.
- stormer_
verlet_ step - One Störmer–Verlet (leapfrog) step for a separable Hamiltonian
H = T(p) + V(q). - sub3
- Subtract two 3-vectors.