Skip to content

Dynamical systems

Dynamical systems.

The package covers chaotic and driven flows, maps, Koopman embeddings, and normal forms of bifurcations.

BakerMapInteraction(label, *, target='map', alpha=1 / 3, lambda_a=1 / 3, lambda_b=2 / 3)

Bases: Interaction

The laws of the generalized baker map.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the map moves.

'map'
alpha float

The position of the cut.

1 / 3
lambda_a float

The height of the bottom band.

1 / 3
lambda_b float

The height of the top band.

2 / 3

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import BakerMapInteraction
>>> BakerMapInteraction('baker', target='map', alpha=0.4).alpha
0.4
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
537
538
539
540
541
542
543
544
545
546
547
548
549
550
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    alpha: float = 1 / 3,
    lambda_a: float = 1 / 3,
    lambda_b: float = 2 / 3,
) -> None:
    super().__init__(label)
    self.target = target
    self.alpha = alpha
    self.lambda_a = lambda_a
    self.lambda_b = lambda_b

BakerMapSystem(x=0.2, y=0.3, *, alpha=1 / 3, lambda_a=1 / 3, lambda_b=2 / 3, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The generalized baker map.

The map stretches the unit square along x and stacks the two pieces in y.

The strip x < alpha is stretched by 1 / alpha and squeezed into the bottom band of height lambda_a, and the rest is stretched by 1 / (1 - alpha) and squeezed into the top band of height lambda_b. The map preserves area when lambda_a = alpha and lambda_b = 1 - alpha, and it has a fractal attractor when lambda_a + lambda_b < 1. The system has the states map.x and map.y.

Parameters:

Name Type Description Default
x float

The initial stretched coordinate.

0.2
y float

The initial squeezed coordinate.

0.3
alpha float

The position of the cut.

1 / 3
lambda_a float

The height of the bottom band.

1 / 3
lambda_b float

The height of the top band.

2 / 3
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import BakerMapSystem
>>> BakerMapSystem(lambda_a=0.2).prepare().system_.interactions[0].lambda_a
0.2
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
def __init__(
    self,
    x: float = 0.2,
    y: float = 0.3,
    *,
    alpha: float = 1 / 3,
    lambda_a: float = 1 / 3,
    lambda_b: float = 2 / 3,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.alpha = alpha
    self.lambda_a = lambda_a
    self.lambda_b = lambda_b

CDNMapSystem(x=0.1, *, alpha=2.8, beta=-0.5, label='system', solver='auto', backend='auto')

Bases: DynamicalSystem

The Cascais-Dilão-Noronha Gaussian map x' = exp(-alpha² x²) + β.

The map acts on an interval.

For alpha = 2.8 the map is chaotic over most of β between about -0.8 and -0.25, with periodic windows, and its complexity rises and falls again with β through period doubling and reverse period doubling, as in the bifurcation diagram and the topological entropy of Dilão (2023, Fig. 3.17). Dilão's Exercises 3.4 and 3.5 write the exponent as -alpha² x² / 2π, the same family with alpha scaled by √(2π). The system has the state map.x.

Parameters:

Name Type Description Default
x float

The initial value.

0.1
alpha float

The steepness of the Gaussian.

2.8
beta float

The shift of the Gaussian.

-0.5
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CDNMapSystem
>>> CDNMapSystem(beta=-0.3).prepare().system_.elements[0].values['beta']
-0.3
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
def __init__(
    self,
    x: float = 0.1,
    *,
    alpha: float = 2.8,
    beta: float = -0.5,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label=label, solver=solver, backend=backend)
    self.x = x
    self.alpha = alpha
    self.beta = beta

CatMapInteraction(label, *, target='map')

Bases: Interaction

The laws of arnold's cat map (x, y) → (2x + y, x + y) (mod 1).

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the map moves.

'map'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CatMapInteraction
>>> CatMapInteraction('cat', target='map').target
'map'
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1018
1019
1020
1021
1022
1023
1024
1025
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
) -> None:
    super().__init__(label)
    self.target = target

CatMapSystem(x=0.1, y=0.3, *, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Arnold's cat map (x, y) → (2x + y, x + y) (mod 1).

It is an area-preserving hyperbolic map of the torus.

The system has the states map.x and map.y.

Parameters:

Name Type Description Default
x float

The initial first coordinate, between 0 and 1.

0.1
y float

The initial second coordinate, between 0 and 1.

0.3
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CatMapSystem
>>> CatMapSystem(x=0.5).prepare().system_.elements[0].values['x']
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
def __init__(
    self,
    x: float = 0.1,
    y: float = 0.3,
    *,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y

CircleMapSystem(theta=0.0, *, Omega=0.25, K=0.9, label='system', solver='auto', backend='auto')

Bases: DynamicalSystem

The sine circle map θ' = θ + Ω - K / (2π) sin 2πθ (mod 1).

The map locks into Arnold tongues.

The system has the state map.theta.

Parameters:

Name Type Description Default
theta float

The initial angle, as a fraction of a turn.

0.0
Omega float

The bare rotation per step.

0.25
K float

The nonlinearity, invertible below 1.

0.9
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CircleMapSystem
>>> CircleMapSystem(K=1.0).prepare().system_.elements[0].values['K']
1.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
389
390
391
392
393
394
395
396
397
398
399
400
401
402
def __init__(
    self,
    theta: float = 0.0,
    *,
    Omega: float = 0.25,
    K: float = 0.9,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label=label, solver=solver, backend=backend)
    self.theta = theta
    self.Omega = Omega
    self.K = K

ConservativeHenonMapInteraction(label, *, target='map', nu=0.2114)

Bases: Interaction

The laws of hénon's area-preserving quadratic map.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the map moves.

'map'
nu float

The rotation number of the linear part, in turns.

0.2114

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import ConservativeHenonMapInteraction
>>> ConservativeHenonMapInteraction('conservative_henon', target='map').nu
0.2114
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    nu: float = 0.2114,
) -> None:
    super().__init__(label)
    self.target = target
    self.nu = nu

ConservativeHenonMapSystem(x=0.1, y=0.0, *, nu=0.2114, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Hénon's area-preserving quadratic map.

The map is a rotation by 2π nu with a quadratic kick.

The map is x' = a x + b y + b x², y' = -b x + a y + a x² with a = cos 2π nu and b = sin 2π nu (Dilão 2023, Example 3.17 and Exercise 2.8). For nu in (0, 1/2) the origin is a centre surrounded by invariant curves, and (2 tan(π nu), -2 tan²(π nu)) is a saddle whose manifolds bound the region of bounded orbits, the dynamic aperture of accelerator physics. The default nu gives cos 2π nu = 0.24, the case of Hénon (1969). The system has the states map.x and map.y.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.1
y float

The initial second coordinate.

0.0
nu float

The rotation number of the linear part, in turns.

0.2114
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import ConservativeHenonMapSystem
>>> ConservativeHenonMapSystem(nu=0.25).prepare().system_.interactions[0].nu
0.25
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
def __init__(
    self,
    x: float = 0.1,
    y: float = 0.0,
    *,
    nu: float = 0.2114,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.nu = nu

CubicChaoticMapSystem(n_walkers=100, *, lam=15.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Bertin's cubic chaotic map and the chaotic walk it drives.

The walk spreads like a random walk.

Every walker follows the map u' = λ u (u - 1/2)(u - 1) + u on the unit interval and moves by the step x' = x + 2u - 1. The fixed point u = 1/2 is stable for λ < 8, a period-two cycle follows, and the map is chaotic at λ = 15. The walkers start at x = 0 with values of u spread regularly over the unit interval, so the mean position stays near 0 while the mean square position grows linearly in time, and the invariant density of u is not uniform. The system has the states walkers.u and walkers.x and the observables displacement, the mean position, and square_displacement, the mean square position.

Parameters:

Name Type Description Default
n_walkers int

The number of walkers of the ensemble.

100
lam float

The parameter λ of the map, between 0 and 16.

15.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CubicChaoticMapSystem
>>> CubicChaoticMapSystem(4, lam=10.0).prepare().system_.elements[0].size
4
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
236
237
238
239
240
241
242
243
244
245
246
247
def __init__(
    self,
    n_walkers: int = 100,
    *,
    lam: float = 15.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.n_walkers = n_walkers
    self.lam = lam

CubicWalkElement(label, *, u=0.3, x=0.0, size=None, space=None)

Bases: Element

Walkers driven by a chaotic map, each with the value u of its map and its position x.

Parameters:

Name Type Description Default
label str

The label of the walkers.

required
u object

The initial value of the map, between 0 and 1, one per walker or shared.

0.3
x object

The initial position, one per walker or shared.

0.0
size int | None

The number of walkers, or None for one.

None
space BaseSpace | None

The line the walkers live on, whose axis x makes x their position, or None.

None

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CubicWalkElement
>>> CubicWalkElement('walker', u=0.4).u
0.4
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
56
57
58
59
60
61
62
63
64
65
66
67
def __init__(
    self,
    label: str,
    *,
    u: object = 0.3,
    x: object = 0.0,
    size: int | None = None,
    space: BaseSpace | None = None,
) -> None:
    super().__init__(label, size=size, space=space)
    self.u = u
    self.x = x

CubicWalkInteraction(label, *, target='walkers', lam=15.0)

Bases: Interaction

Bertin's cubic chaotic map u' = lam u (u - 1/2)(u - 1) + u and the step x' = x + 2 u - 1 it drives.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The walkers whose values u and positions x the map moves.

'walkers'
lam float

The nonlinearity of the map.

15.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CubicWalkInteraction
>>> CubicWalkInteraction('walk', lam=8.0).lam
8.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
91
92
93
94
def __init__(self, label: str, *, target: Role = 'walkers', lam: float = 15.0) -> None:
    super().__init__(label)
    self.target = target
    self.lam = lam

CuspFormInteraction(label, *, target='form', beta1=0.0, beta2=1.0)

Bases: Interaction

The laws of the cusp normal form x' = β1 + β2 x - x³.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose state x the flow moves.

'form'
beta1 float

The asymmetry.

0.0
beta2 float

The splitting parameter.

1.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CuspFormInteraction
>>> CuspFormInteraction('cusp_form', target='form', beta1=0.5).beta1
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
419
420
421
422
423
424
425
426
427
428
429
430
def __init__(
    self,
    label: str,
    *,
    target: Role = 'form',
    beta1: float = 0.0,
    beta2: float = 1.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.beta1 = beta1
    self.beta2 = beta2

CuspFormSystem(x=0.5, *, beta1=0.0, beta2=1.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The cusp normal form x' = β1 + β2 x - x³.

The form is bistable inside the cusp 27 β1² < 4 β2³.

The system has the state form.x.

Parameters:

Name Type Description Default
x float

The initial value.

0.5
beta1 float

The asymmetry.

0.0
beta2 float

The splitting parameter.

1.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import CuspFormSystem
>>> CuspFormSystem(beta1=0.2).prepare().system_.interactions[0].beta1
0.2
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
485
486
487
488
489
490
491
492
493
494
495
496
497
498
def __init__(
    self,
    x: float = 0.5,
    *,
    beta1: float = 0.0,
    beta2: float = 1.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.beta1 = beta1
    self.beta2 = beta2

DoublingMapInteraction(label, *, target='points', q=DOUBLING_DENOMINATOR)

Bases: Interaction

The doubling map x' = 2 x (mod 1) on the grid of the fractions of denominator q.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose values x the map moves.

'points'
q float

The denominator of the grid.

DOUBLING_DENOMINATOR

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import DoublingMapInteraction
>>> DoublingMapInteraction('doubling', target='points', q=1024.0).q
1024.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
132
133
134
135
def __init__(self, label: str, *, target: Role = 'points', q: float = DOUBLING_DENOMINATOR) -> None:
    super().__init__(label)
    self.target = target
    self.q = q

DoublingMapSystem(n_points=100, *, x=0.4, spread=0.01, q=DOUBLING_DENOMINATOR, random_state=0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

An ensemble of the doubling map x' = 2x (mod 1).

The map is iterated exactly on fractions with an odd denominator.

In floating point 2x (mod 1) shifts out one binary digit per step, and every orbit reaches 0 within 53 steps. The system keeps every point on the fractions k / q of an odd denominator q and applies the map to them exactly, k' = 2k (mod q), through the update x' = (2 round(q x) mod q) / q. The orbits are the exact orbits of these fractions. The default q is a prime below 2^50 of which 2 is a primitive root, so every orbit except that of 0 has the period q - 1, about 10^15. The points start in a narrow interval and spread until their histogram matches the uniform invariant density. The system has the states points.x.

Parameters:

Name Type Description Default
n_points int

The number of points of the ensemble.

100
x float

The left end of the interval of initial points, which are rounded to the nearest fraction k / q.

0.4
spread float

The width of the interval of initial points.

0.01
q float

The odd denominator of the fractions the points stay on, an integer below 2^51.

DOUBLING_DENOMINATOR
random_state int | Generator | None

The seed or generator of the initial points.

0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import DoublingMapSystem
>>> float(DoublingMapSystem(10, q=101.0).prepare().system_.elements[0].values['x'][0] * 101)
41.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
def __init__(
    self,
    n_points: int = 100,
    *,
    x: float = 0.4,
    spread: float = 0.01,
    q: float = DOUBLING_DENOMINATOR,
    random_state: int | np.random.Generator | None = 0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.n_points = n_points
    self.x = x
    self.spread = spread
    self.q = q
    self.random_state = random_state

FermiUlamMapInteraction(label, *, target='map', epsilon=0.1)

Bases: Interaction

The laws of the Fermi-Ulam map of a ball bouncing between two walls.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states u and theta the map moves.

'map'
epsilon float

The amplitude of the speed the oscillating wall gives the ball.

0.1

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import FermiUlamMapInteraction
>>> FermiUlamMapInteraction('fermi_ulam', target='map').epsilon
0.1
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    epsilon: float = 0.1,
) -> None:
    super().__init__(label)
    self.target = target
    self.epsilon = epsilon

FermiUlamMapSystem(u=0.5, theta=1.0, *, epsilon=0.1, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Fermi-Ulam map of a ball bouncing between two walls.

One wall is fixed and the other oscillates in time.

The speed and the phase of the wall at a bounce follow u' = |u + ε sin θ|, θ' = θ + 2π / u' (mod 2π), an area-preserving map with a mixed state space like the standard map (Datseris and Parlitz 2022, Exercise 1.11). The points θ = 0 and θ = π at the speeds u = 1 / m are its fixed points. The system has the states map.u and map.theta.

Parameters:

Name Type Description Default
u float

The initial speed of the ball, positive.

0.5
theta float

The initial phase of the oscillating wall.

1.0
epsilon float

The amplitude of the speed the oscillating wall gives the ball.

0.1
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import FermiUlamMapSystem
>>> FermiUlamMapSystem(epsilon=0.2).prepare().system_.interactions[0].epsilon
0.2
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
def __init__(
    self,
    u: float = 0.5,
    theta: float = 1.0,
    *,
    epsilon: float = 0.1,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.u = u
    self.theta = theta
    self.epsilon = epsilon

FiniteTimeBlowUpInteraction(label, *, target='growth', a=1.0, p=2.0)

Bases: Interaction

The laws of hyperbolic growth x' = a x^p.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose state x the flow moves.

'growth'
a float

The growth coefficient.

1.0
p float

The growth exponent.

2.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import FiniteTimeBlowUpInteraction
>>> FiniteTimeBlowUpInteraction('finite_time_blow_up', target='growth', a=0.5).a
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
560
561
562
563
564
565
566
567
568
569
570
571
def __init__(
    self,
    label: str,
    *,
    target: Role = 'growth',
    a: float = 1.0,
    p: float = 2.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.p = p

FiniteTimeBlowUpSystem(x=1.0, *, a=1.0, p=2.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Hyperbolic growth x' = a x^p.

For p > 1 the growth diverges at the finite time x0^(1 - p) / (a (p - 1)).

The system has the state growth.x.

Parameters:

Name Type Description Default
x float

The initial value, positive.

1.0
a float

The growth coefficient.

1.0
p float

The growth exponent.

2.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import FiniteTimeBlowUpSystem
>>> FiniteTimeBlowUpSystem(p=3.0).prepare().system_.interactions[0].p
3.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
626
627
628
629
630
631
632
633
634
635
636
637
638
639
def __init__(
    self,
    x: float = 1.0,
    *,
    a: float = 1.0,
    p: float = 2.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.a = a
    self.p = p

HenonMapInteraction(label, *, target='map', a=1.4, b=0.3)

Bases: Interaction

The laws of the Hénon map x' = 1 - a x² + y, y' = b x.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the map moves.

'map'
a float

The nonlinearity.

1.4
b float

The contraction.

0.3

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import HenonMapInteraction
>>> HenonMapInteraction('henon', target='map').a
1.4
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
145
146
147
148
149
150
151
152
153
154
155
156
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    a: float = 1.4,
    b: float = 0.3,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.b = b

HenonMapSystem(x=0.0, y=0.0, *, a=1.4, b=0.3, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Hénon map x' = 1 - a x² + y, y' = b x.

The map has a fractal strange attractor for its defaults.

The system has the states map.x and map.y.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.0
y float

The initial second coordinate.

0.0
a float

The nonlinearity.

1.4
b float

The contraction.

0.3
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import HenonMapSystem
>>> HenonMapSystem(a=1.2).prepare().system_.interactions[0].a
1.2
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
def __init__(
    self,
    x: float = 0.0,
    y: float = 0.0,
    *,
    a: float = 1.4,
    b: float = 0.3,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.a = a
    self.b = b

HopfFormInteraction(label, *, target='form', mu=0.25, omega=1.0, a=-1.0)

Bases: Interaction

The laws of the Hopf normal form.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the flow moves.

'form'
mu float

The bifurcation parameter.

0.25
omega float

The angular frequency.

1.0
a float

The cubic coefficient, the sign of the first Lyapunov coefficient.

-1.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import HopfFormInteraction
>>> HopfFormInteraction('hopf_form', target='form', mu=0.5).mu
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
151
152
153
154
155
156
157
158
159
160
161
162
163
164
def __init__(
    self,
    label: str,
    *,
    target: Role = 'form',
    mu: float = 0.25,
    omega: float = 1.0,
    a: float = -1.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.mu = mu
    self.omega = omega
    self.a = a

HopfFormSystem(x=0.1, y=0.0, *, mu=0.25, omega=1.0, a=-1.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Hopf normal form.

Its focus gives birth to a limit cycle of radius √(-μ / a) as μ crosses 0.

x' = μx - ωy + a x (x² + y²) and y' = ωx + μy + a y (x² + y²), supercritical for a < 0. The system has the states form.x and form.y.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.1
y float

The initial second coordinate.

0.0
mu float

The bifurcation parameter.

0.25
omega float

The angular frequency.

1.0
a float

The cubic coefficient, the sign of the first Lyapunov coefficient.

-1.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import HopfFormSystem
>>> HopfFormSystem(mu=-0.1).prepare().system_.interactions[0].mu
-0.1
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
def __init__(
    self,
    x: float = 0.1,
    y: float = 0.0,
    *,
    mu: float = 0.25,
    omega: float = 1.0,
    a: float = -1.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.mu = mu
    self.omega = omega
    self.a = a

HyperchaoticRosslerInteraction(label, *, target='rossler', a=0.25, b=3.0, c=0.05, d=0.5)

Bases: Interaction

The laws of rössler's four-dimensional flow.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x, y, z, and w the flow moves.

'rossler'
a float

The feedback of the second coordinate on itself.

0.25
b float

The constant drive of the third coordinate.

3.0
c float

The growth of the fourth coordinate.

0.05
d float

The damping of the fourth coordinate by the third.

0.5

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import HyperchaoticRosslerInteraction
>>> HyperchaoticRosslerInteraction('hyperchaotic_rossler', target='rossler', a=0.5).a
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
def __init__(
    self,
    label: str,
    *,
    target: Role = 'rossler',
    a: float = 0.25,
    b: float = 3.0,
    c: float = 0.05,
    d: float = 0.5,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.b = b
    self.c = c
    self.d = d

HyperchaoticRosslerSystem(x=-10.0, y=-6.0, z=0.0, w=10.0, *, a=0.25, b=3.0, c=0.05, d=0.5, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Rössler's four-dimensional flow.

The flow is hyperchaotic with two positive Lyapunov exponents for its defaults.

The flow x' = -(y + z), y' = x + a y + w, z' = b + x z, w' = c w - d z stretches the attractor in two directions at once, with the exponents near 0.11 and 0.02 for the parameters of Dilão (2023, Exercise 4.18). The system has the states rossler.x, rossler.y, rossler.z, and rossler.w.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

-10.0
y float

The initial second coordinate.

-6.0
z float

The initial third coordinate.

0.0
w float

The initial fourth coordinate.

10.0
a float

The feedback of the second coordinate on itself.

0.25
b float

The constant drive of the third coordinate.

3.0
c float

The growth of the fourth coordinate.

0.05
d float

The damping of the fourth coordinate by the third.

0.5
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import HyperchaoticRosslerSystem
>>> HyperchaoticRosslerSystem(c=0.1).prepare().system_.interactions[0].c
0.1
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
def __init__(
    self,
    x: float = -10.0,
    y: float = -6.0,
    z: float = 0.0,
    w: float = 10.0,
    *,
    a: float = 0.25,
    b: float = 3.0,
    c: float = 0.05,
    d: float = 0.5,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.w = w
    self.a = a
    self.b = b
    self.c = c
    self.d = d

IkedaInteraction(label, *, target='ikeda', a=1.0, tau=2.0)

Bases: Interaction

The law of the Ikeda delay equation x' = a sin x(t - tau).

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose value x the delayed feedback moves.

'ikeda'
a float

The gain of the delayed feedback.

1.0
tau float

The delay, a positive time.

2.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import IkedaInteraction
>>> IkedaInteraction('feedback', target='ikeda', tau=1.0).tau
1.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
def __init__(
    self,
    label: str,
    *,
    target: Role = 'ikeda',
    a: float = 1.0,
    tau: float = 2.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.tau = tau

IkedaSystem(x=2.0, *, a=1.0, tau=2.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Ikeda delay equation x' = a sin x(t - tau).

The equation is in the form of Dilão (2023, Exercise 6.4).

The rest points x = k π alternate in stability for a > 0: those of odd k attract while a tau < π / 2, and lose stability to an oscillation in a Hopf bifurcation at a tau = π / 2. The history before the start is the initial value. The system has the state ikeda.x.

Parameters:

Name Type Description Default
x float

The initial value, also its history.

2.0
a float

The gain of the delayed feedback.

1.0
tau float

The delay.

2.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import IkedaSystem
>>> IkedaSystem(tau=1.0).prepare().system_.interactions[0].tau
1.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
def __init__(
    self,
    x: float = 2.0,
    *,
    a: float = 1.0,
    tau: float = 2.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.a = a
    self.tau = tau

IntermittencyMapInteraction(label, *, target='map', z=2.0)

Bases: Interaction

The laws of the Pomeau-Manneville map x' = x + x^z (mod 1).

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose state x the map moves.

'map'
z float

The exponent of the tangency at 0, above 1.

2.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import IntermittencyMapInteraction
>>> IntermittencyMapInteraction('intermittency', target='map').z
2.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
815
816
817
818
819
820
821
822
823
824
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    z: float = 2.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.z = z

IntermittencyMapSystem(x=0.01, *, z=2.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Pomeau-Manneville map x' = x + x^z (mod 1).

Its long laminar phases near 0 end in chaotic bursts.

The system has the state map.x.

Parameters:

Name Type Description Default
x float

The initial value, between 0 and 1.

0.01
z float

The exponent of the tangency at 0, above 1.

2.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import IntermittencyMapSystem
>>> IntermittencyMapSystem(z=1.5).prepare().system_.interactions[0].z
1.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
876
877
878
879
880
881
882
883
884
885
886
887
def __init__(
    self,
    x: float = 0.01,
    *,
    z: float = 2.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.z = z

KoopmanSlowManifoldInteraction(label, *, target='flow', mu=-0.05, lam=-1.0)

Bases: Interaction

The laws of the quadratic flow x1' = mu x1, x2' = lam (x2 - x1^2).

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x1 and x2 the flow moves.

'flow'
mu float

The slow eigenvalue.

-0.05
lam float

The fast eigenvalue.

-1.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import KoopmanSlowManifoldInteraction
>>> KoopmanSlowManifoldInteraction('koopman_slow_manifold', target='flow', mu=0.5).mu
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_koopman.py
46
47
48
49
50
51
52
53
54
55
56
57
def __init__(
    self,
    label: str,
    *,
    target: Role = 'flow',
    mu: float = -0.05,
    lam: float = -1.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.mu = mu
    self.lam = lam

KoopmanSlowManifoldSystem(x1=1.0, x2=-1.0, *, mu=-0.05, lam=-1.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The quadratic flow x1' = mu x1, x2' = lam (x2 - x1^2).

The flow has a slow manifold and a linear embedding.

For lam < mu < 0 the fast direction contracts onto the slow manifold x2 = x1^2, and the state then slides along it to the origin. With the observable x1^2, the coordinates (x1, x2, x1^2) span a Koopman-invariant subspace in which the flow is linear, with the eigenvalues mu, lam, and 2 mu. The Koopman eigenfunctions phi_mu = x1 and phi_lam = x2 - b x1^2 with b = lam / (lam - 2 mu) decay exactly as exp(mu t) and exp(lam t), so trajectories follow the parabolas x2 = b x1^2 + C |x1|^(lam / mu). The system has the states flow.x1 and flow.x2.

Parameters:

Name Type Description Default
x1 float

The initial slow coordinate.

1.0
x2 float

The initial fast coordinate.

-1.0
mu float

The slow eigenvalue.

-0.05
lam float

The fast eigenvalue.

-1.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import KoopmanSlowManifoldSystem
>>> KoopmanSlowManifoldSystem(lam=-2.0).prepare().system_.interactions[0].lam
-2.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_koopman.py
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
def __init__(
    self,
    x1: float = 1.0,
    x2: float = -1.0,
    *,
    mu: float = -0.05,
    lam: float = -1.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x1 = x1
    self.x2 = x2
    self.mu = mu
    self.lam = lam

LangfordInteraction(label, *, target='langford', a=0.95, b=0.7, c=0.6, d=3.5, e=0.25, f=0.1)

Bases: Interaction

The laws of the Langford flow, a rotation in x, y with the height z.

Its radius and height couple into a torus that breaks into chaos. The flow is x' = (z - b) x - d y, y' = d x + (z - b) y, and z' = c + a z - z³ / 3 - (x² + y²)(1 + e z) + f z x³.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose coordinates x, y, and z the flow moves.

'langford'
a float

The linear growth of the height.

0.95
b float

The height above which the rotation grows.

0.7
c float

The constant drive of the height.

0.6
d float

The angular frequency of the rotation.

3.5
e float

The coupling of the radius and the height.

0.25
f float

The term that breaks the rotational symmetry.

0.1

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LangfordInteraction
>>> LangfordInteraction('flow', target='langford', d=3.0).d
3.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
def __init__(
    self,
    label: str,
    *,
    target: Role = 'langford',
    a: float = 0.95,
    b: float = 0.7,
    c: float = 0.6,
    d: float = 3.5,
    e: float = 0.25,
    f: float = 0.1,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.b = b
    self.c = c
    self.d = d
    self.e = e
    self.f = f

LangfordSystem(x=0.1, y=0.0, z=0.0, *, a=0.95, b=0.7, c=0.6, d=3.5, e=0.25, f=0.1, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Langford flow, a rotation whose torus breaks into a strange attractor.

The torus breaks for the defaults of Dilão.

The flow is x' = (z - b) x - d y, y' = d x + (z - b) y, and z' = c + a z - z³ / 3 - (x² + y²)(1 + e z) + f z x³, with the reference parameters of Dilão (2023, Exercise 3.22). Without f the flow is symmetric under rotations about the z axis.

The system has the states langford.x, langford.y, and langford.z.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.1
y float

The initial second coordinate.

0.0
z float

The initial height.

0.0
a float

The linear growth of the height.

0.95
b float

The height above which the rotation grows.

0.7
c float

The constant drive of the height.

0.6
d float

The angular frequency of the rotation.

3.5
e float

The coupling of the radius and the height.

0.25
f float

The term that breaks the rotational symmetry.

0.1
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LangfordSystem
>>> LangfordSystem(f=0.0).prepare().system_.interactions[0].f
0.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
def __init__(
    self,
    x: float = 0.1,
    y: float = 0.0,
    z: float = 0.0,
    *,
    a: float = 0.95,
    b: float = 0.7,
    c: float = 0.6,
    d: float = 3.5,
    e: float = 0.25,
    f: float = 0.1,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.a = a
    self.b = b
    self.c = c
    self.d = d
    self.e = e
    self.f = f

LogisticMapInteraction(label, *, target='map')

Bases: Interaction

The law of the logistic map x' = r x (1 - x).

The growth rate r is a value of the element, so a group of maps can give every member a rate of its own.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose state x the map moves, with the growth rate r among its values.

'map'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LogisticMapInteraction
>>> LogisticMapInteraction('logistic', target='map').target
'map'
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
47
48
49
def __init__(self, label: str, *, target: Role = 'map') -> None:
    super().__init__(label)
    self.target = target

LogisticMapSystem(x=0.2, *, r=3.7, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The logistic map x_{t+1} = r x_t (1 - x_t).

The map reaches chaos through period doubling as r grows.

The system has the state map.x and the parameter map.r.

Parameters:

Name Type Description Default
x float

The initial value, between 0 and 1.

0.2
r float

The growth rate, between 0 and 4.

3.7
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LogisticMapSystem
>>> LogisticMapSystem(r=3.2).prepare().simulate(until=2).get_values('map.x').round(3).tolist()
[0.2, 0.512, 0.8]
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
 98
 99
100
101
102
103
104
105
106
107
108
109
def __init__(
    self,
    x: float = 0.2,
    *,
    r: float = 3.7,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.r = r

LorenzElement(label, *, x=1.0, y=1.0, z=1.0, sigma=10.0, rho=28.0, beta=8 / 3)

Bases: Element

An element with the three states of the Lorenz flow and its parameters.

LorenzInteraction gives the flow x' = sigma (y - x), y' = x (rho - z) - y, z' = x y - beta z.

Parameters:

Name Type Description Default
label str

The label of the element.

required
x float

The initial convection intensity.

1.0
y float

The initial temperature difference between rising and falling currents.

1.0
z float

The initial deviation of the vertical temperature profile.

1.0
sigma float

The Prandtl number.

10.0
rho float

The Rayleigh number relative to its critical value.

28.0
beta float

The geometric factor.

8 / 3

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LorenzElement
>>> LorenzElement('lorenz', rho=20.0).rho
20.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
def __init__(
    self,
    label: str,
    *,
    x: float = 1.0,
    y: float = 1.0,
    z: float = 1.0,
    sigma: float = 10.0,
    rho: float = 28.0,
    beta: float = 8 / 3,
) -> None:
    super().__init__(label)
    self.x = x
    self.y = y
    self.z = z
    self.sigma = sigma
    self.rho = rho
    self.beta = beta

LorenzInteraction(label, *, target='lorenz')

Bases: Interaction

The Lorenz flow of the three states of the element it binds.

The flow is x' = sigma (y - x), y' = x (rho - z) - y, z' = x y - beta z, with the parameters of the element. For sigma = 10, rho = 28, and beta = 8/3 its runs never settle and never repeat, the strange attractor of Lorenz. Lorenz derived it from convection in the atmosphere, it models a laser and a water wheel, and it drives a response system in studies of chaotic synchronization.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The path of the element with the states x, y, and z and the parameters sigma, rho, and beta.

'lorenz'

Examples:

>>> from skcomplex.core.systems import System
>>> from skcomplex.systems.mathematics.dynamical_systems import LorenzElement, LorenzInteraction
>>> lorenz = LorenzElement('lorenz', x=0.0, y=0.0, z=2.0, beta=0.5)
>>> system = System(elements=[lorenz], interactions=[LorenzInteraction('flow', target='lorenz')]).prepare()
>>> [round(float(value), 4) for value in system.simulate(until=1.0, dt=0.5).get_values('lorenz.z')]
[2.0, 1.5576, 1.2131]
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
258
259
260
def __init__(self, label: str, *, target: Role = 'lorenz') -> None:
    super().__init__(label)
    self.target = target

LorenzSystem(x=1.0, y=1.0, z=1.0, *, sigma=10.0, rho=28.0, beta=8 / 3, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Lorenz-63 system of convection.

The system is chaotic on a butterfly-shaped attractor for its standard parameters.

The system has the states lorenz.x, lorenz.y, and lorenz.z.

Parameters:

Name Type Description Default
x float

The initial convection intensity.

1.0
y float

The initial temperature difference between rising and falling currents.

1.0
z float

The initial deviation of the vertical temperature profile.

1.0
sigma float

The Prandtl number.

10.0
rho float

The Rayleigh number relative to its critical value.

28.0
beta float

The geometric factor.

8 / 3
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LorenzSystem
>>> LorenzSystem(rho=20.0).prepare().system_.elements[0].rho
20.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
def __init__(
    self,
    x: float = 1.0,
    y: float = 1.0,
    z: float = 1.0,
    *,
    sigma: float = 10.0,
    rho: float = 28.0,
    beta: float = 8 / 3,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.sigma = sigma
    self.rho = rho
    self.beta = beta

LoziMapInteraction(label, *, target='map', a=1.7, b=0.5)

Bases: Interaction

The laws of the Lozi map x' = 1 + y - a |x|, y' = b x.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the map moves.

'map'
a float

The slope of the fold.

1.7
b float

The contraction.

0.5

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LoziMapInteraction
>>> LoziMapInteraction('lozi', target='map').a
1.7
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    a: float = 1.7,
    b: float = 0.5,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.b = b

LoziMapSystem(x=0.0, y=0.0, *, a=1.7, b=0.5, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Lozi map x' = 1 + y - a |x|, y' = b x.

It is the piecewise linear Hénon map with a strange attractor.

The fold of the Hénon map becomes a corner, so the attractor is made of straight segments, and for the defaults of Lozi (1978) the orbit is chaotic (Dilão 2023, Exercise 3.16). The system has the states map.x and map.y.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.0
y float

The initial second coordinate.

0.0
a float

The slope of the fold.

1.7
b float

The contraction.

0.5
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import LoziMapSystem
>>> LoziMapSystem(a=1.5).prepare().system_.interactions[0].a
1.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
def __init__(
    self,
    x: float = 0.0,
    y: float = 0.0,
    *,
    a: float = 1.7,
    b: float = 0.5,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.a = a
    self.b = b

MixedFlowInteraction(label, *, target='flow')

Bases: Interaction

The laws of Sprott's flow, conservative and dissipative at once.

The flow is x' = y + 2xy + xz, y' = 1 - 2x² + yz, z' = x - x² - y².

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose coordinates x, y, and z the flow moves.

'flow'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import MixedFlowInteraction
>>> MixedFlowInteraction('mixed_flow', target='flow').target
'flow'
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
123
124
125
def __init__(self, label: str, *, target: Role = 'flow') -> None:
    super().__init__(label)
    self.target = target

NewtonRaphsonMapInteraction(label, *, target='map')

Bases: Interaction

The laws of newton's method for z³ = 1 in the complex plane, in real coordinates.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the map moves.

'map'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import NewtonRaphsonMapInteraction
>>> NewtonRaphsonMapInteraction('newton_raphson', target='map').target
'map'
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
917
918
919
920
921
922
923
924
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
) -> None:
    super().__init__(label)
    self.target = target

NewtonRaphsonMapSystem(x=0.5, y=0.5, *, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Newton's method for z³ = 1 in the complex plane, in real coordinates.

The method is z' = (2z³ + 1) / (3z²).

Every start except a set of measure zero converges to one of the three cube roots of unity, and the boundaries of their basins are fractal. The system has the states map.x and map.y.

Parameters:

Name Type Description Default
x float

The initial real part.

0.5
y float

The initial imaginary part.

0.5
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import NewtonRaphsonMapSystem
>>> NewtonRaphsonMapSystem(x=1.5).prepare().system_.elements[0].values['x']
1.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
977
978
979
980
981
982
983
984
985
986
987
988
def __init__(
    self,
    x: float = 0.5,
    y: float = 0.5,
    *,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y

NoseHooverInteraction(label, *, target='oscillator')

Bases: Interaction

The laws of the Nosé-Hoover oscillator x' = y, y' = y z - x, z' = 1 - y².

It is a conservative flow with tori and chaos.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose position x, momentum y, and friction z the flow moves.

'oscillator'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import NoseHooverInteraction
>>> NoseHooverInteraction('thermostat', target='oscillator').target
'oscillator'
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
163
164
165
def __init__(self, label: str, *, target: Role = 'oscillator') -> None:
    super().__init__(label)
    self.target = target

NoseHooverSystem(x=0.0, y=0.1, z=0.0, *, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Nosé-Hoover oscillator x' = y, y' = y z - x, z' = 1 - y².

The oscillator has tori next to a chaotic sea.

The flow conserves volume on average and its state space is mixed. From (0, 1.549934227822898, 0) the orbit is periodic, from (0, 1, 0) it winds on a torus around that orbit, and from the default (0, 0.1, 0) it is chaotic (Datseris and Parlitz 2022, Exercise 2.11). Since z' = 1 - y², every bounded orbit has <y²> = 1. The system has the states oscillator.x, oscillator.y, and oscillator.z.

Parameters:

Name Type Description Default
x float

The initial position.

0.0
y float

The initial momentum.

0.1
z float

The initial friction of the thermostat.

0.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import NoseHooverSystem
>>> NoseHooverSystem(y=1.0).prepare().system_.elements[0].values['y']
1.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
856
857
858
859
860
861
862
863
864
865
866
867
868
869
def __init__(
    self,
    x: float = 0.0,
    y: float = 0.1,
    z: float = 0.0,
    *,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z

OUDriveInteraction(label, *, target='rossler', tau=50.0, rho=0.5)

Bases: Interaction

The drive of a flow by a control eta that follows an Ornstein-Uhlenbeck process.

The control adds to the rate of y and follows eta' = (-eta + rho xi) / tau with white noise xi, so it relaxes to 0 over the correlation time tau.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose coordinate y the control drives and that holds the control eta.

'rossler'
tau float

The correlation time of the control.

50.0
rho float

The amplitude of the noise of the control.

0.5

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import OUDriveInteraction
>>> OUDriveInteraction('control', target='rossler', tau=10.0).tau
10.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_driven_flows.py
50
51
52
53
54
def __init__(self, label: str, *, target: Role = 'rossler', tau: float = 50.0, rho: float = 0.5) -> None:
    super().__init__(label)
    self.target = target
    self.tau = tau
    self.rho = rho

OUDrivenRosslerSystem(x=1.0, y=1.0, z=1.0, *, a=0.2, b=0.4, c=5.743, tau=50.0, rho=0.5, eta=0.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Rössler flow driven through its bifurcations.

A slow Ornstein-Uhlenbeck control parameter drives the flow.

The flow is x' = -y - z, y' = x + a y + eta, z' = b + z (x - c), Eq. 13 of Cestnik and Martens, and the control follows eta' = (-eta + rho xi) / tau with white noise xi. The control is an Ornstein-Uhlenbeck process with the correlation time tau and the stationary variance rho^2 / (2 tau). A control that varies slowly against the period of the flow sweeps it through the period doublings and chaotic bands of its bifurcation diagram. The system has the states rossler.x, rossler.y, rossler.z, and the control rossler.eta.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

1.0
y float

The initial second coordinate.

1.0
z float

The initial third coordinate.

1.0
a float

The feedback of the second coordinate on itself.

0.2
b float

The constant drive of the third coordinate.

0.4
c float

The threshold of the third coordinate's growth.

5.743
tau float

The correlation time of the control.

50.0
rho float

The amplitude of the noise of the control.

0.5
eta float

The initial control.

0.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import OUDrivenRosslerSystem
>>> OUDrivenRosslerSystem(tau=10.0).prepare().system_.interactions[1].tau
10.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_driven_flows.py
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
def __init__(
    self,
    x: float = 1.0,
    y: float = 1.0,
    z: float = 1.0,
    *,
    a: float = 0.2,
    b: float = 0.4,
    c: float = 5.743,
    tau: float = 50.0,
    rho: float = 0.5,
    eta: float = 0.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.a = a
    self.b = b
    self.c = c
    self.tau = tau
    self.rho = rho
    self.eta = eta

RosslerInteraction(label, *, target='rossler', a=0.2, b=0.2, c=5.7)

Bases: Interaction

The laws of the Rössler flow x' = -y - z, y' = x + a y, z' = b + z (x - c).

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose coordinates x, y, and z the flow moves.

'rossler'
a float

The feedback of the second coordinate on itself.

0.2
b float

The constant drive of the third coordinate.

0.2
c float

The threshold of the third coordinate's growth.

5.7

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import RosslerInteraction
>>> RosslerInteraction('flow', target='rossler', c=4.0).c
4.0
Source code in src/skcomplex/systems/mathematics/common/flows/_rossler.py
40
41
42
43
44
45
46
47
48
49
50
51
52
53
def __init__(
    self,
    label: str,
    *,
    target: Role = 'rossler',
    a: float = 0.2,
    b: float = 0.2,
    c: float = 5.7,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.b = b
    self.c = c

RosslerSystem(x=1.0, y=1.0, z=1.0, *, a=0.2, b=0.2, c=5.7, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Rössler system.

It is a chaotic flow with one folded band for its standard parameters.

The system has the states rossler.x, rossler.y, and rossler.z.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

1.0
y float

The initial second coordinate.

1.0
z float

The initial third coordinate.

1.0
a float

The feedback of the second coordinate on itself.

0.2
b float

The constant drive of the third coordinate.

0.2
c float

The threshold of the third coordinate's growth.

5.7
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import RosslerSystem
>>> RosslerSystem(c=4.0).prepare().system_.interactions[0].c
4.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
def __init__(
    self,
    x: float = 1.0,
    y: float = 1.0,
    z: float = 1.0,
    *,
    a: float = 0.2,
    b: float = 0.2,
    c: float = 5.7,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.a = a
    self.b = b
    self.c = c

SaddleNodeFormInteraction(label, *, target='form', mu=1.0)

Bases: Interaction

The laws of the saddle-node normal form x' = μ - x².

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose state x the flow moves.

'form'
mu float

The bifurcation parameter.

1.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SaddleNodeFormInteraction
>>> SaddleNodeFormInteraction('saddle_node_form', target='form', mu=0.5).mu
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
40
41
42
43
44
45
46
47
48
49
def __init__(
    self,
    label: str,
    *,
    target: Role = 'form',
    mu: float = 1.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.mu = mu

SaddleNodeFormSystem(x=0.0, *, mu=1.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The saddle-node normal form x' = μ - x².

Its two equilibria ±√μ meet and vanish at μ = 0.

The system has the state form.x.

Parameters:

Name Type Description Default
x float

The initial value.

0.0
mu float

The bifurcation parameter.

1.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SaddleNodeFormSystem
>>> SaddleNodeFormSystem(mu=0.5).prepare().system_.interactions[0].mu
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
101
102
103
104
105
106
107
108
109
110
111
112
def __init__(
    self,
    x: float = 0.0,
    *,
    mu: float = 1.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.mu = mu

SkewTentMapInteraction(label, *, target='points', a=0.3)

Bases: Interaction

The skew tent map x' = x / a below the peak a and (1 - x) / (1 - a) above it.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose values x the map moves.

'points'
a float

The position of the peak, between 0 and 1.

0.3

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SkewTentMapInteraction
>>> SkewTentMapInteraction('tent', target='points', a=0.5).a
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
170
171
172
173
def __init__(self, label: str, *, target: Role = 'points', a: float = 0.3) -> None:
    super().__init__(label)
    self.target = target
    self.a = a

SkewTentMapSystem(n_points=100, *, a=0.3, x=0.4, spread=0.01, random_state=0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

An ensemble of the skew tent map.

Its density relaxes to the uniform invariant density for any a.

The map is x' = x / a for x < a and x' = (1 - x) / (1 - a) otherwise. Every value has one preimage on each branch, with slopes 1 / a and 1 / (1 - a), so the uniform density is invariant. The points start in a narrow interval and spread over the unit interval until their histogram is flat. For a = 1/2 both slopes are 2, and in floating point every orbit reaches 0 within about 55 steps, so a should differ from 1/2. The system has the states points.x.

Parameters:

Name Type Description Default
n_points int

The number of points of the ensemble.

100
a float

The position of the top of the tent, between 0 and 1.

0.3
x float

The left end of the interval of initial points.

0.4
spread float

The width of the interval of initial points.

0.01
random_state int | Generator | None

The seed or generator of the initial points.

0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SkewTentMapSystem
>>> SkewTentMapSystem(10, a=0.7).prepare().system_.interactions[0].a
0.7
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_chaotic_ensembles.py
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
def __init__(
    self,
    n_points: int = 100,
    *,
    a: float = 0.3,
    x: float = 0.4,
    spread: float = 0.01,
    random_state: int | np.random.Generator | None = 0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.n_points = n_points
    self.a = a
    self.x = x
    self.spread = spread
    self.random_state = random_state

SprottJerkInteraction(label, *, target='jerk', A=0.6)

Bases: Interaction

The law of Sprott's jerk equation x''' = -A x'' - x' + |x| - 1.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose position x the equation moves.

'jerk'
A float

The damping of the second derivative.

0.6

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SprottJerkInteraction
>>> SprottJerkInteraction('jerk_law', target='jerk', A=0.5).A
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
452
453
454
455
def __init__(self, label: str, *, target: Role = 'jerk', A: float = 0.6) -> None:
    super().__init__(label)
    self.target = target
    self.A = A

SprottJerkSystem(x=0.0, velocity=0.0, acceleration=1.0, *, A=0.6, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Sprott's jerk equation x''' = -A x'' - x' + |x| - 1, chaotic near A = 0.6.

The system has the state jerk.x of order 3 and its derivatives jerk.x' and jerk.x''.

Parameters:

Name Type Description Default
x float

The initial position.

0.0
velocity float

The initial first derivative.

0.0
acceleration float

The initial second derivative.

1.0
A float

The damping of the second derivative.

0.6
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SprottJerkSystem
>>> SprottJerkSystem(A=0.5).prepare().system_.interactions[0].A
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
def __init__(
    self,
    x: float = 0.0,
    velocity: float = 0.0,
    acceleration: float = 1.0,
    *,
    A: float = 0.6,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.velocity = velocity
    self.acceleration = acceleration
    self.A = A

SprottMixedFlowSystem(x=2.0, y=0.0, z=0.0, *, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Sprott's flow with a conservative torus and a dissipative chaotic attractor.

The torus and the attractor lie side by side.

The flow is x' = y + 2xy + xz, y' = 1 - 2x² + yz, z' = x - x² - y², whose volumes change at the rate 2(y + z). From (1, 0, 0) the orbit winds on a 2-torus where this rate averages to zero, and from the default (2, 0, 0) it falls onto a chaotic attractor where it averages below zero (Datseris and Parlitz 2022, Exercises 3.17 and 8.16).

The system has the states flow.x, flow.y, and flow.z.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

2.0
y float

The initial second coordinate.

0.0
z float

The initial third coordinate.

0.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SprottMixedFlowSystem
>>> SprottMixedFlowSystem(1.0).prepare().system_.elements[0].values['x']
1.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
924
925
926
927
928
929
930
931
932
933
934
935
936
937
def __init__(
    self,
    x: float = 2.0,
    y: float = 0.0,
    z: float = 0.0,
    *,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z

StandardMapInteraction(label, *, target='map', K=1.2)

Bases: Interaction

The kick of the Chirikov standard map p' = p + K sin θ, θ' = θ + p'.

The angle is taken modulo 2π and the momentum is kept on the real line.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose angle theta and momentum p the map moves.

'map'
K float

The kick strength.

1.2

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import StandardMapInteraction
>>> StandardMapInteraction('kick', target='map', K=0.5).K
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
265
266
267
268
def __init__(self, label: str, *, target: Role = 'map', K: float = 1.2) -> None:
    super().__init__(label)
    self.target = target
    self.K = K

StandardMapSystem(theta=0.0, p=2 * math.pi * GOLDEN_MEAN, *, K=1.2, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Chirikov standard map p' = p + K sin θ, θ' = θ + p'.

The map has global chaos above K ≈ 0.9716.

The last invariant circle that spans the angle, the golden-mean torus, breaks at K ≈ 0.971635. The angle is taken modulo 2π and the momentum is kept on the real line, so its spread measures diffusion. The system has the states map.theta and map.p, and the kick strength kick.K.

Parameters:

Name Type Description Default
theta float

The initial angle.

0.0
p float

The initial momentum, by default on the golden-mean torus of the unkicked rotor.

2 * pi * GOLDEN_MEAN
K float

The kick strength.

1.2
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import StandardMapSystem
>>> system = StandardMapSystem(K=0.5).prepare()
>>> system.states_
('map.theta', 'map.p')
>>> system.simulate(until=2).get_values('map.p').round(3).tolist()
[3.883, 3.883, 3.545]
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
326
327
328
329
330
331
332
333
334
335
336
337
338
339
def __init__(
    self,
    theta: float = 0.0,
    p: float = 2 * math.pi * GOLDEN_MEAN,
    *,
    K: float = 1.2,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.theta = theta
    self.p = p
    self.K = K

SubcriticalHopfFormInteraction(label, *, target='form', alpha=-0.1, omega=1.0, q=0.0, gamma=1.0, s=0.0)

Bases: Interaction

The laws of the subcritical Hopf normal form of the amplitude z = x + iy.

The amplitude follows z' = (alpha + iω) z + (1 + iq) |z|² z - (gamma + is) |z|⁴ z.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose real part x and imaginary part y the form moves.

'form'
alpha float

The bifurcation parameter alpha, the linear growth rate.

-0.1
omega float

The angular frequency ω at small amplitude.

1.0
q float

The nonlinear frequency shift q of the cubic term.

0.0
gamma float

The stabilizing quintic coefficient gamma, positive.

1.0
s float

The nonlinear frequency shift s of the quintic term.

0.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SubcriticalHopfFormInteraction
>>> SubcriticalHopfFormInteraction('subcritical_hopf_form', target='form', alpha=0.1).alpha
0.1
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_subcritical_forms.py
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
def __init__(
    self,
    label: str,
    *,
    target: Role = 'form',
    alpha: float = -0.1,
    omega: float = 1.0,
    q: float = 0.0,
    gamma: float = 1.0,
    s: float = 0.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.alpha = alpha
    self.omega = omega
    self.q = q
    self.gamma = gamma
    self.s = s

SubcriticalHopfFormSystem(x=0.1, y=0.0, *, alpha=-0.1, omega=1.0, q=0.0, gamma=1.0, s=0.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The subcritical Hopf normal form.

A stable focus coexists with a stable limit cycle.

The complex amplitude z = x + iy follows z' = (alpha + iω) z + (1 + iq) |z|² z - (gamma + is) |z|⁴ z, so its modulus follows r' = alpha r + r³ - gamma r⁵. The focus z = 0 is stable for alpha < 0. The stable limit cycle of radius r² = (1 + √(1 + 4 alpha gamma)) / (2 gamma) exists for alpha > -1 / (4 gamma), and an unstable cycle separates the two attractors while alpha < 0. A slow sweep of alpha up and down therefore jumps to the cycle at alpha = 0 and falls back to the focus at alpha = -1 / (4 gamma), a hysteresis loop. The system has the states form.x and form.y, and the parameters of the interaction subcritical_hopf_form.

Parameters:

Name Type Description Default
x float

The initial real part of z.

0.1
y float

The initial imaginary part of z.

0.0
alpha float

The bifurcation parameter alpha, the linear growth rate.

-0.1
omega float

The angular frequency ω at small amplitude.

1.0
q float

The nonlinear frequency shift q of the cubic term.

0.0
gamma float

The stabilizing quintic coefficient gamma, positive.

1.0
s float

The nonlinear frequency shift s of the quintic term.

0.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import SubcriticalHopfFormSystem
>>> SubcriticalHopfFormSystem(alpha=0.1).prepare().system_.interactions[0].alpha
0.1
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_subcritical_forms.py
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
def __init__(
    self,
    x: float = 0.1,
    y: float = 0.0,
    *,
    alpha: float = -0.1,
    omega: float = 1.0,
    q: float = 0.0,
    gamma: float = 1.0,
    s: float = 0.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.alpha = alpha
    self.omega = omega
    self.q = q
    self.gamma = gamma
    self.s = s

TakensBogdanovFormInteraction(label, *, target='form', beta1=0.1, beta2=-1.0, sign=-1.0)

Bases: Interaction

The laws of the Takens-Bogdanov normal form x' = y, y' = β1 + β2 x + x² + s x y.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x and y the flow moves.

'form'
beta1 float

The first unfolding parameter.

0.1
beta2 float

The second unfolding parameter.

-1.0
sign float

The sign s of the mixed term, -1 or 1.

-1.0

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import TakensBogdanovFormInteraction
>>> TakensBogdanovFormInteraction('takens_bogdanov_form', target='form', beta1=0.5).beta1
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
283
284
285
286
287
288
289
290
291
292
293
294
295
296
def __init__(
    self,
    label: str,
    *,
    target: Role = 'form',
    beta1: float = 0.1,
    beta2: float = -1.0,
    sign: float = -1.0,
) -> None:
    super().__init__(label)
    self.target = target
    self.beta1 = beta1
    self.beta2 = beta2
    self.sign = sign

TakensBogdanovFormSystem(x=0.2, y=0.0, *, beta1=0.1, beta2=-1.0, sign=-1.0, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Takens-Bogdanov normal form x' = y, y' = β1 + β2 x + x² + s x y.

In this form a saddle-node meets a Hopf.

The system has the states form.x and form.y.

Parameters:

Name Type Description Default
x float

The initial position.

0.2
y float

The initial velocity.

0.0
beta1 float

The first unfolding parameter.

0.1
beta2 float

The second unfolding parameter.

-1.0
sign float

The sign s of the mixed term, -1 or 1.

-1.0
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import TakensBogdanovFormSystem
>>> TakensBogdanovFormSystem(beta1=0.0).prepare().system_.interactions[0].beta1
0.0
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_normal_forms.py
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
def __init__(
    self,
    x: float = 0.2,
    y: float = 0.0,
    *,
    beta1: float = 0.1,
    beta2: float = -1.0,
    sign: float = -1.0,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.beta1 = beta1
    self.beta2 = beta2
    self.sign = sign

TentMapSystem(x=0.3, *, mu=1.99, label='system', solver='auto', backend='auto')

Bases: DynamicalSystem

The tent map x' = μ min(x, 1 - x).

The map is chaotic with Lyapunov exponent ln μ for μ above 1.

The system has the state map.x.

Parameters:

Name Type Description Default
x float

The initial value, between 0 and 1.

0.3
mu float

The slope, between 0 and 2.

1.99
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import TentMapSystem
>>> TentMapSystem(mu=1.5).prepare().system_.elements[0].values['mu']
1.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
470
471
472
473
474
475
476
477
478
479
480
481
def __init__(
    self,
    x: float = 0.3,
    *,
    mu: float = 1.99,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label=label, solver=solver, backend=backend)
    self.x = x
    self.mu = mu

ThomasInteraction(label, *, target='thomas', a=0.18)

Bases: Interaction

The laws of the Thomas flow x' = -a x + sin y with its cyclic permutations.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x, y, and z the flow moves.

'thomas'
a float

The damping of every coordinate.

0.18

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import ThomasInteraction
>>> ThomasInteraction('flow', target='thomas', a=0.5).a
0.5
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
def __init__(
    self,
    label: str,
    *,
    target: Role = 'thomas',
    a: float = 0.18,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a

ThomasSystem(x=0.1, y=0.0, z=0.0, *, a=0.18, label='system', solver='auto', backend='auto')

Bases: BaseSystem

The Thomas flow x' = -a x + sin y with its cyclic permutations.

The flow is chaotic for a = 0.18.

The flow is symmetric under the cyclic permutation of its coordinates. As the damping a falls the fixed points give way to limit cycles and then to chaos, and at a = 0 the orbits wander through a lattice of cells, Thomas's labyrinth chaos (Dilão 2023, Exercise 3.23). The system has the states thomas.x, thomas.y, and thomas.z.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.1
y float

The initial second coordinate.

0.0
z float

The initial third coordinate.

0.0
a float

The damping of every coordinate.

0.18
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import ThomasSystem
>>> ThomasSystem(a=0.2).prepare().system_.interactions[0].a
0.2
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_flows.py
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
def __init__(
    self,
    x: float = 0.1,
    y: float = 0.0,
    z: float = 0.0,
    *,
    a: float = 0.18,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.a = a

TowelMapInteraction(label, *, target='map', a=3.8, b=3.78)

Bases: Interaction

The laws of rössler's towel map.

Parameters:

Name Type Description Default
label str

The label of the interaction.

required
target Role

The element whose states x, y, and z the map moves.

'map'
a float

The growth rate of the first logistic coordinate.

3.8
b float

The growth rate of the third logistic coordinate.

3.78

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import TowelMapInteraction
>>> TowelMapInteraction('towel', target='map').a
3.8
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
690
691
692
693
694
695
696
697
698
699
700
701
def __init__(
    self,
    label: str,
    *,
    target: Role = 'map',
    a: float = 3.8,
    b: float = 3.78,
) -> None:
    super().__init__(label)
    self.target = target
    self.a = a
    self.b = b

TowelMapSystem(x=0.085, y=-0.121, z=0.075, *, a=3.8, b=3.78, label='system', solver='auto', backend='auto')

Bases: BaseSystem

Rössler's towel map.

It is a three-dimensional map with two positive Lyapunov exponents.

x' = a x (1 - x) - 0.05 (y + 0.35)(1 - 2z), y' = 0.1 ((y + 0.35)(1 - 2z) - 1)(1 - 1.9 x), and z' = b z (1 - z) + 0.2 y. The system has the states map.x, map.y, and map.z.

Parameters:

Name Type Description Default
x float

The initial first coordinate.

0.085
y float

The initial second coordinate.

-0.121
z float

The initial third coordinate.

0.075
a float

The growth rate of the first logistic coordinate.

3.8
b float

The growth rate of the third logistic coordinate.

3.78
label str

The label of the system, which names it when it is nested in another one.

'system'
solver BaseSolver | str

The solver of the problem, or 'auto' for the one the system chooses.

'auto'
backend BaseBackend | str

The backend that evaluates the compiled functions, or 'auto' for the one the system chooses.

'auto'

Examples:

>>> from skcomplex.systems.mathematics.dynamical_systems import TowelMapSystem
>>> TowelMapSystem(a=3.7).prepare().system_.interactions[0].a
3.7
Source code in src/skcomplex/systems/mathematics/dynamical_systems/_maps.py
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
def __init__(
    self,
    x: float = 0.085,
    y: float = -0.121,
    z: float = 0.075,
    *,
    a: float = 3.8,
    b: float = 3.78,
    label: str = 'system',
    solver: BaseSolver | str = 'auto',
    backend: BaseBackend | str = 'auto',
) -> None:
    super().__init__(label, solver=solver, backend=backend)
    self.x = x
    self.y = y
    self.z = z
    self.a = a
    self.b = b