File:Folded-towel map attractor.png
Original file (2,345 × 2,330 pixels, file size: 3.42 MB, MIME type: image/png)
Captions
Summary[edit]
DescriptionFolded-towel map attractor.png |
English: An implementation of the folded-towel map attractor. u
```python import numpy as np def dynamical_system(x, y, z, a, b, n_iter): x_values = np.empty(n_iter) y_values = np.empty(n_iter) z_values = np.empty(n_iter) x_values[0] = x y_values[0] = y z_values[0] = z for i in range(1, n_iter): x, y, z = x_values[i], y_values[i], z_values[i] = a * x * (1 - x) - 0.05 * (y + 0.35) * (1 - 2 * z), 0.1 * ((y + 0.35) * (1 + 2 * z) - 1) * (1 - 1.9 * x), 3.78 * z * (1 - z) + b * y return x_values, y_values, z_values
a = 3.8 b = 0.2 x_init = 0.085 y_init = -0.121 z_init = 0.075 n_iter = 1000000 x, y, z = dynamical_system(x_init, y_init, z_init, a, b, n_iter) from sklearn.preprocessing import normalize x = normalize([x])[0] y = normalize([y])[0] z = normalize([z])[0] import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(30, 30)) init_time = 1000 ax.scatter(y[init_time:], x[init_time:], color='k', s=0.005) ax.axis("off") plt.show() ``` |
Date | |
Source | Own work |
Author | Cosmia Nebula |
Licensing[edit]
- 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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:44, 24 April 2023 | 2,345 × 2,330 (3.42 MB) | Cosmia Nebula (talk | contribs) | Uploaded while editing "Hyperchaos" on en.wikipedia.org |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org