Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/echosingh/visualization
Math Is Fun
https://github.com/echosingh/visualization
fibonacci-graph heart-pumping-shape pi-estimation
Last synced: 2 days ago
JSON representation
Math Is Fun
- Host: GitHub
- URL: https://github.com/echosingh/visualization
- Owner: EchoSingh
- License: mit
- Created: 2024-05-25T06:06:00.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-25T16:19:52.000Z (6 months ago)
- Last Synced: 2024-07-24T05:32:24.684Z (4 months ago)
- Topics: fibonacci-graph, heart-pumping-shape, pi-estimation
- Language: Jupyter Notebook
- Homepage:
- Size: 2.48 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Visualization and Calculation of Mathematical Concepts 𝝿
This repository contains a Jupyter Notebook that visualizes and calculates different mathematical concepts, including the estimation of π (Pi) using the Monte Carlo method, creating a dynamic heart shape animation using parametric equations, and plotting the Fibonacci sequence.
## Snapshots
![𝝅](https://github.com/aditya26062003/Visualization/blob/main/1.png)
![❤︎](https://github.com/aditya26062003/Visualization/blob/main/heart.gif)
## PrerequisitesMake sure you have the following packages installed:
```sh
pip install numpy
pip install matplotlib
pip install plotly
```
# Contents
1. Estimation of Pi Using Monte Carlo Method:
This section estimates the value of π using the Monte Carlo method by randomly generating points within a square and counting how many fall inside a quarter circle.
2. Dynamic Heart Shape Animation:
This section creates an animated heart shape using parametric equations and the Plotly library.
3. Plotting the Fibonacci Sequence:
This section calculates and plots the first 50 numbers in the Fibonacci sequence using Matplotlib.Instructions
Clone the repository:```sh
Copy code
git clone https://github.com/aditya26062003/Visualization.git
Navigate to the repository directory:
```
```shcd Visualization
Open the Jupyter Notebook:
```
```shjupyter notebook Shapes.ipynb
Run the cells in the notebook to see the visualizations and calculations.
```
# Examples
Estimation of Pi Using Monte Carlo Method
This part of the notebook uses random point generation to estimate the value of π. The result is visualized with Plotly, showing points inside and outside the quarter circle.Dynamic Heart Shape Animation
This part of the notebook creates a dynamic heart shape animation using parametric equations. The animation is created using Plotly and shows a heart shape "popping" in and out.Plotting the Fibonacci Sequence
This part of the notebook calculates the first 50 numbers in the Fibonacci sequence and plots them using Matplotlib.## License
This project is licensed under the MIT License .## Author
Aditya Singh