Skip to main content

pynamicalsys: A Python toolkit for the analysis of dynamical systems

Documentation Status PyPI License: GPL v3

Table of Contents

Overview

pynamicalsys is designed to provide a fast, flexible, and user-friendly environment for analyzing nonlinear dynamical systems. It is intended for students, researchers, educators, and enthusiasts who want to explore the world of chaos and dynamical systems. Beyond standard tools like trajectory generation and Lyapunov exponents calculation, pynamicalsys includes advanced features such as

  • Bifurcation diagrams, Poincaré sections, and stroboscopic maps for analyzing system trajectories.
  • Symplectic integrators for analyzing Hamiltonian systems.
  • Linear dependence index for chaos detection.
  • Recurrence plots and recurrence time statistics.
  • Chaos indicators based on weighted Birkhoff averages.
  • Statistical measures of diffusion and transport in dynamical systems.
  • Computation of periodic orbits, their stability and their manifolds.
  • Basin metric for quantifying the structure of basins of attraction.
  • Plot styling for consistent and customizable visualizations.

pynamicalsys is built on top of NumPy and Numba, ensuring high performance and efficiency. Thanks to Numba accelerated computation, pynamicalsys offers speedups up to 130x compared to the original Python implementation of the algorithms. This makes it suitable for large-scale simulations and analyses.

The methods and applications implemented in pynamicalsys are presented and discussed in our research article:

M. Rolim Sales et al., pynamicalsys: A Python toolkit for the analysis of dynamical systems, Chaos, Solitons and Fractals 201, 117269 (2025).

You can reproduce the numerical experiments, figures, and performance benchmarks presented in the paper using the companion Jupyter notebooks:

Installation

Prerequisites

  • Python 3.10 or higher
  • pip (Python package installer)

Install via PyPI

To install the latest stable release, run in your command line:

pip install pynamicalsys

Note: On Windows, it is strongly recommended to use Anaconda. It simplifies dependency management and avoids potential issues with scientific libraries during installation. Be sure to run the command from the Anaconda Prompt, not from Command Prompt or PowerShell, to ensure the correct environment is activated.

Upgrade via PyPI

To upgrade your current version of pynamicalsys to the latest stable release, run in your command line:

pip install pynamicalsys --upgrade

Install from source

If you want to install the development version from the source repository, clone the repo and install with:

git clone https://github.com/mrolims/pynamicalsys.git
cd pynamicalsys
pip install .

Verifying the installation

After installation, you can verify it by running Python and importing the package:

>>> import pynamicalsys
>>> pynamicalsys.__version__

Troubleshooting

If you encounter any issues, make sure you have the latest version of pip:

pip install --upgrade pip build

Documentation

For detailed instructions, examples, and API references, please visit the full documentation page:

pynamicalsys.readthedocs.io

The documentation includes:

  • Getting Started — installation and quick-start examples.
  • Tutorial — step-by-step explanations of key concepts and pratical demonstrations.
  • API Reference — detailed descriptions of all functions, parameters, and return values.

Citation

If you use pynamicalsys in your work, please cite our research paper. Below are recommended citation formats for different use cases.

BibTeX

@article{pynamicalsys,
  title={pynamicalsys: A Python toolkit for the analysis of dynamical systems},
  author={Matheus Rolim Sales and Leonardo Costa de Souza and Daniel Borin and Michele Mugnaine and José Danilo Szezech and Ricardo Luiz Viana and Iberê Luiz Caldas and Edson Denis Leonel and Chris G. Antonopoulos},
  journal={Chaos, Solitons & Fractals},
  volume={201},
  pages={117269},
  year={2025},
  doi={https://doi.org/10.1016/j.chaos.2025.117269},
  url={https://www.sciencedirect.com/science/article/pii/S0960077925012822},
}

API Style

Rolim Sales, M., Costa de Souza, L., Borin, D., Mugnaine, M., Szezech Jr., J. D., Viana, R. L., Caldas, I. L., Leonel, E. D., & Antonopoulos, C. G. (2025). pynamicalsys: A Python toolkit for the analysis of dynamical systems. Chaos, Solitons & Fractals, 201, 117269. https://doi.org/10.1016/j.chaos.2025.117269

Short citation style

Matheus Rolim Sales et al., "pynamicalsys: A Python toolkit for the analysis of dynamical systems," Chaos, Solitons & Fractals, vol. 201, p. 117269, 2025. https://doi.org/10.1016/j.chaos.2025.117269

Contributing

We welcome contributions from the community! To get started, please see our Contributing Guidelines.

License

This project is licensed under the GNU General Public License v3.0.
See the LICENSE file for details.

Acknowledgments

This project was financed, in part, by the São Paulo Research Foundation (FAPESP, Brazil), under process numbers 2023/08698-9 and 2024/09208-8.

Disclaimer

As opiniões, hipóteses e conclusões ou recomendações expressas neste material são de responsabilidade do(s) autor(es) e não necessariamente refletem a visão da Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP, Brasil).

The opinions, hypotheses, and conclusions or recommendations expressed in this material are the sole responsibility of the author(s) and do not necessarily reflect the views of the São Paulo Research Foundation (FAPESP, Brazil).

Metadata

Release files for pynamicalsys 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynamicalsys 1.7.0
File Size Uploaded
pynamicalsys-1.7.0.tar.gz 6.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pynamicalsys 1.7.0
File Interpreter ABI Platform
pynamicalsys-1.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 MB

Release files / pynamicalsys-1.7.0.tar.gz

Download URL pynamicalsys-1.7.0.tar.gz
Size 6.8 MB
Tags Source
SHA-256 checksum
How to use checksums
05f84eb081f2ae52b2b9e577a61b07e27f6a8c665f448bf39bef67f02aaccb94
BLAKE2b-256 checksum
How to use checksums
1c113de163b62b347fde6a8acb3fa424b6f99de03c3484504568ebbf7c1b7e2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / pynamicalsys-1.7.0-py3-none-any.whl

Download URL pynamicalsys-1.7.0-py3-none-any.whl
Size 224.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd22fb03be8a165874df398e0e5391e2e959ca8dc0824f734e6a0b12d853dfcc
BLAKE2b-256 checksum
How to use checksums
33ce76c8d307f7db188efda35e528b12dd4dd7d26e8e112ef14c13c674790061
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files

1.6.0

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page