Skip to main content

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)") , f = solver.get_function("diff(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)

Version History

  • 8.12.2024 - v0.1 -> only 1st order ODE's are solvable, more features coming soon
  • 15.12.2024 -v0.2 -> security updates, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numodesolver-0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numODEsolver-0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file numodesolver-0.3.tar.gz.

File metadata

  • Download URL: numodesolver-0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for numodesolver-0.3.tar.gz
Algorithm Hash digest
SHA256 81ffc939797cbb87085341bee214e2c485da0582aaeae20d74e7e03f9e1ebda1
MD5 99e4db844d5e2f5d7ea05eb0f7bde8b6
BLAKE2b-256 912cdc84efe5295e130d6e91b87ef28c89c96eaf724a52ad0e3beaaf20ba7a18

See more details on using hashes here.

File details

Details for the file numODEsolver-0.3-py3-none-any.whl.

File metadata

  • Download URL: numODEsolver-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for numODEsolver-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73322327cb1bf809c7dd04a474ef138295fc7b33afd594ce867fef00e1df8df4
MD5 48b0ac2d9abf9813cf8d3d20dffa5bb5
BLAKE2b-256 e46b1f47d9211cc58f0622bd7e1fa7c42d776158544fb97a77ca6a5b85977b86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page