Skip to main content

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("y") 
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))
from numODEsolver import solver

solver = solver()
f = solver.get_function_2order("dy")
x,y,dy = solver.solve_euler_2order(f,x0=0,y0=1,dy0=1,n=10000,bound=5)
print(solver.get_value(x,y,val=3,dec=2))

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
  • 26.1.2025 - v0.3 -> included 2nd order methods, see more on GitHub

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

Metadata

Release files for numODEsolver 1.0.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 numODEsolver 1.0.0
File Size Uploaded Provenance Actions
numodesolver-1.0.0.tar.gz 3.7 kB Without provenance Details for numodesolver-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 8.9 kB

Release files / numodesolver-1.0.0.tar.gz

Download URL numodesolver-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad4b3d4600b917e075a736ef9781a1d9f84081a149d3f869ce4d226a74e46f44
BLAKE2b-256 checksum
How to use checksums
3c7cbd2862af2f5748400c91203e31e43c0bd84e3ab3972851bbc81fbae88d54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / numODEsolver-1.0.0-py3-none-any.whl

Download URL numODEsolver-1.0.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4065d0a7ff3c083f60c642927eda1e336b45da8679e4b2f29067b11ef379965
BLAKE2b-256 checksum
How to use checksums
5ac1268bc138eeb66d3a890616a26e548e218240fd0951cbdf5ec7e84fa9bb12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Security for numODEsolver 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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