Jump to content

File:Lorenz map for the Rossler attractor.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Lorenz_map_for_the_Rossler_attractor.png (690 × 553 pixels, file size: 29 KB, MIME type: image/png)

Summary

Description
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]
  1. Rossler system parameters

a = 0.2 b = 0.2 c = 5

  1. Initial conditions

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

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
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

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

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/TimeThumbnailDimensionsUserComment
current22:50, 18 April 2023Thumbnail for version as of 22:50, 18 April 2023690 × 553 (29 KB)Cosmia Nebulac = 5
22:35, 18 April 2023Thumbnail for version as of 22:35, 18 April 2023587 × 460 (25 KB)Cosmia NebulaUploaded while editing "Rössler attractor" on en.wiki.x.io

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata