File:ChuaAttractorModified.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 720 × 540 pixels, file size: 19.8 MB)

    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

    Description
    English: Modified Chua chaotic attractor
    Date
    Source Own work
    Author Shiyu Ji
    SVG development
    InfoField
     The SVG code is valid.
     This oversized vector image was created with an unknown SVG tool.

    Python Matplotlib Code

    # A 3D Euler method based simulation of the Modified Chua Attractor.
    from mpl_toolkits.mplot3d import axes3d
    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)
    alpha, beta = 10.82, 14.286
    a, b, c, d = 1.3, .11, 7, 0
    ax = pl.figure().add_subplot(111, projection='3d')
    ax.set_xlabel('X')
    ax.set_ylabel('Y')
    ax.set_zlabel('Z')
    
    x, y, z = 1, 1, 0
    for t in T:
        h = -b*np.sin(np.pi*x/(2*a)+d)
        new_x = x + alpha*(y-h) * dt
        new_y = y + (x - y + z) * dt
        new_z = z - beta * y * dt
        ax.plot([x, new_x], [y, new_y], [z, new_z], 'b-', linewidth=0.5)
        x, y, z = new_x, new_y, new_z
    
    pl.show()
    

    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

    11 November 2016

    image/svg+xml

    80167dd09e8ab6b422011c020d6f60cc97391f30

    20,763,720 byte

    540 pixel

    720 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current10:20, 11 November 2016Thumbnail for version as of 10:20, 11 November 2016720 × 540 (19.8 MB)wikimediacommons>Shiyu JiUser created page with UploadWizard

    There are no pages that use this file.