File:Lorenz map for the Rossler attractor.png
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionLorenz map for the Rossler attractor.png |
English: A replication of Figure 13 of Chaos in biological systems
LF Olsen, H Degn - Quarterly reviews of biophysics, 1985 Reproduced and discussed in Strogatz Nonlinear Dynamics (2nd edition), Figure 10.6.7 ```python import numpy as np import matplotlib.pyplot as plt from scipy.integrate import solve_ivp def rossler_system(t, xyz, a, b, c): x, y, z = xyz dx_dt = -y - z dy_dt = x + a * y dz_dt = b + z * (x - c) return [dx_dt, dy_dt, dz_dt]
a = 0.2 b = 0.2 c = 5
xyz0 = [1.0, 1.0, 1.0] tmin, tmax = 0, 10000 t_span = [tmin, tmax] t_eval = np.linspace(t_span[0], t_span[1], (tmax-tmin) * t_resolution) solution = solve_ivp(rossler_system, t_span, xyz0, args=(a, b, c), t_eval=t_eval) x, y, z = solution.y def find_local_maxima(arr): local_maxima = []
for i in range(1, len(arr) - 1):
if arr[i - 1] < arr[i] > arr[i + 1]:
local_maxima.append(arr[i])
return local_maxima
local_maxima = find_local_maxima(x) x = local_maxima[10:-1] y = local_maxima[11:] z = np.polyfit(x, y, 5) p = np.poly1d(z) fig, ax = plt.subplots(figsize=(8, 6)) ax.scatter(local_maxima[10:-1], local_maxima[11:], s=0.01) ax.plot(sorted(x), p(sorted(x)), color='red', linewidth=0.2) ax.set_xlabel("$x_{max}(n)$") ax.set_ylabel("$x_{max}(n+1)$") ax.set_title(f"Lorenz map for the Rössler attractor, with $a={a}, b={b}, c={c}$") plt.show() ``` |
| Date | |
| Source | Own work |
| Author | Cosmia Nebula |
Licensing
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Captions
Items portrayed in this file
depicts
some value
18 April 2023
29,817 byte
553 pixel
690 pixel
image/png
0019f5a352bb8c2346df98850b10182a77b529d6
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 23:50, 18 April 2023 | 690 × 553 (29 KB) | wikimediacommons>Cosmia Nebula | c = 5 |
File usage
The following page uses this file:
