Pynamical: Model and Visualize Discrete Nonlinear Dynamical Systems, Chaos, and Fractals
Journal of Open Source Education, 1(1), 15 (2018)
3 Pages Posted: 13 Jul 2018
Date Written: June 21, 2018
Pynamical is an educational Python package for introducing the modeling, simulation, and visualization of discrete nonlinear dynamical systems and chaos, focusing on one-dimensional maps (such as the logistic map and the cubic map). Pynamical facilitates defining discrete one-dimensional nonlinear models as Python functions with just-in-time compilation for fast simulation. It comes packaged with the logistic map, the Singer map, and the cubic map predefined. The models may be run with a range of parameter values over a set of time steps, and the resulting numerical output is returned as a pandas DataFrame. Pynamical can then visualize this output in various ways, including with bifurcation diagrams, two-dimensional phase diagrams, three-dimensional phase diagrams, and cobweb plots. These visualizations enable simple qualitative assessments of system behavior including phase transitions, bifurcation points, attractors and limit cycles, basins of attraction, and fractals.
Keywords: chaos, fractal, nonlinearity, nonlinear systems, attractor, bifurcation, chaotic, dynamical, geometry, mathematics, modeling, simulation, physics, prediction, python, visualization, systems analysis
JEL Classification: C6
Suggested Citation: Suggested Citation