File:PWLDuffingAttractor.svg

Original file(SVG file, nominally 720 × 540 pixels, file size: 19.79 MB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: PWL Duffing chaotic attractor
Date
Source Own work
Author Shiyu Ji

Python/Matplotlib Code edit

# An Euler method based simulation of the PWL Duffing chaotic Attractor with i=-15.
import matplotlib.pyplot as pl
import numpy as np

t0 = 0.0
dt = 0.01
t_final = 1000
T = np.arange(t0, t_final, dt)
i, e = -14.0, .25
gamma, m0, m1, omega = .14+i/20, -.0845, .66, 1.0
ax = pl.figure().add_subplot(111)
ax.set_xlabel('X')
ax.set_ylabel('Y')

x, y = 0.0, 0.0
for t in T:
    new_x = x + y * dt
    new_y = y + (-m1*x - (m0-m1)/2*(abs(x+1)-abs(x-1)) - e*y + gamma*np.cos(omega*t)) * dt
    ax.plot([x, new_x], [y, new_y], 'b-', linewidth=0.5)
    x, y = new_x, new_y

pl.show()

Licensing edit

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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:21, 11 November 2016Thumbnail for version as of 09:21, 11 November 2016720 × 540 (19.79 MB)Shiyu Ji (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata