Tool that solves and plots ODE's numerically. Written in Python.
Project description
Numerical ODE Solver
This project is a Python implementation for solving ordinary differential equations (ODEs) numerically. The script allows users to choose between two methods: Euler's Method and Runge-Kutta 4th Order Method (RK4), providing a visual representation of the solution.
Requirements
Python version >= 3.8
Ensure the following Python libraries are installed:
Install it using pip:
pip install numODEsolver
Example
from numODEsolver import solver
import matplotlib.pyplot as plt #optional for plot
solver = solver()
f = solver.get_function("cos(x)")
x,y = solver.solve_rk4(f,x0=0,y0=1,n=10000,bound=10.1)
print(solver.get_value(x,y,val=10,dec=5)
Version History
- 8.12.2024 - v0.1 -> only 1st order ODE's are solvable, more features coming soon
- 15.12.2024 - v0.2 -> removed plot function
For more documentation take a look at the source code on my GitHub.
You can modify the script to add more methods, adjust default parameters, or change visualization settings.
This project is open-source and free to use. Contributions and suggestions are welcome!
Lukas
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file numodesolver-0.4.1.tar.gz.
File metadata
- Download URL: numodesolver-0.4.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dc6eec63d3c37d2535cbdb3f0bf102cf302cff047e38c0550fbf981fb2a0864
|
|
| MD5 |
74e15da20b79c52899801dcf9587cf6a
|
|
| BLAKE2b-256 |
ea0876c7347ee49e1b8fb8f111907b1b59cef8c75440609110eb332d30ca9f94
|
File details
Details for the file numODEsolver-0.4.1-py3-none-any.whl.
File metadata
- Download URL: numODEsolver-0.4.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0014645210e6b10707131661ac213adf5a0f06d15f91cd0eb670847f51d4302
|
|
| MD5 |
d2ecfb18c86e937719ef0945bd6441d3
|
|
| BLAKE2b-256 |
48ba4b5878b240198f7b77ea28fd714a9e491abaf369522ed9a7d142a7e89865
|