PiecewiseCircuit¶
Systems / DDEs / Delayed systems
A delayed piecewise-linear circuit — chaos from a saturating nonlinearity with memory.
Start here¶
import tsdynamics as ts
system = ts.systems.PiecewiseCircuit()
traj = system.run(final_time=500.0, dt=0.5, 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.
A delay system needs a past history, not just its present state. This example uses the model's default history; pass history= to describe a different past.
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 time unit
leading exponents only
Method and evidence
history-space Benettin QR
Finite-time estimate, not a convergence certificate. Only the leading directions were computed.
Settings
{
"backend": "jit",
"k": 6,
"final_time": 2000.0,
"transient": 400.0,
"dt": 0.1,
"ic": [
2.538766944016245
]
}
Preparation
{
"final_time": 400.0,
"dt": 0.1,
"history": "each coordinate: 0.4 + 0.05*sin(0.15*t), t <= 0",
"note": "The estimator starts with constant past at the warm-up endpoint; its own transient discards that history reset."
}
Estimator runtime in the recorded environment: 2.2363 s.
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": 6,
"final_time": 2000.0,
"transient": 400.0,
"dt": 0.1,
"ic": [
2.538766944016245
]
}
constant in the state
Method and evidence
Instantaneous-state trace only; this is not the divergence of the infinite-dimensional history flow.
Recorded parameters and software
{
"parameters": {
"alpha": 1.0,
"beta": 1.0,
"c": 2.24,
"tau": 4.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 |
|---|---|---|
alpha |
1 |
linear decay rate of the delayed state |
beta |
1 |
gain of the cubic feedback term |
c |
2.24 |
scale of the cubic nonlinearity (feedback hump width) |
tau |
4.9 |
feedback delay |
State variables: x
Explore further¶
- Delay-system Lyapunov estimates — estimate a few leading exponents of the history space; these do not form a complete finite-dimensional spectrum.
- 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¶
Tamasevicius, Mykolaitis & Bumeliene (2006), Electron. Lett. 42, 13
doi:10.1049/el:20061245