https://github.com/dorsaroh/chaos-theory
Ever wanted to visualize chaos? Compute & graph systems in chaos theory with any parameters
https://github.com/dorsaroh/chaos-theory
data-visualization math matplotlib python
Last synced: about 3 hours ago
JSON representation
Ever wanted to visualize chaos? Compute & graph systems in chaos theory with any parameters
- Host: GitHub
- URL: https://github.com/dorsaroh/chaos-theory
- Owner: DorsaRoh
- Created: 2022-07-13T14:05:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T16:36:34.000Z (almost 3 years ago)
- Last Synced: 2025-08-04T22:03:24.483Z (11 months ago)
- Topics: data-visualization, math, matplotlib, python
- Language: Python
- Homepage:
- Size: 2.09 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chaos Theory
### Graphs and computes systems in Chaos Theory; Lorenz Attractors & Logistic Maps.
Visualize chaos with your own chosen parameters.
[3D Lorenz Attractor](https://github.com/DorsaRoh/Chaos-Theory/blob/main/3D_lorenzattractor.py) : 3D representation of the Lorenz Attractor

[2D Lorenz Attractor](https://github.com/DorsaRoh/Chaos-Theory/blob/main/2D_lorenzattractor.py) : 2D representation of the Lorenz Attractor's axes and dimension

[Logistic Map](https://github.com/DorsaRoh/Chaos-Theory/blob/main/logisticmap.py) : 2D Representation of Logistic Map
## Features:
- Computes and graphs Lorenz Attractors using values sigma, beta, Rho and time inputted by the user.
- Trajectory curve graphs, XY, YZ and XZ axis matplotlib graph visuals.
- Logistic Map using an inputted value for the r axis. Bifurcation can be controlled by the number of iterations given by the user.
## Installation
### 1. Clone the repository
```shell
git clone https://github.com/DorsaRoh/https://github.com/DorsaRoh/Chaos-Theory
```
```shell
cd Chaos-Theory
```
### 2. Install dependencies
```shell
pip install numpy matplotlib scipy
```
or
```shell
pip install -r requirements.txt
```
### 3. Usage
**Enter your parameters in [parameters.py](https://github.com/DorsaRoh/Chaos-Theory/blob/main/parameters.py) file**
Run file
```shell
python run *file name of desired chaotic system*
```
For example:
```shell
python 3D_lorenzattractor.py
```