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

Ensure the following Python libraries are installed:

Install it using pip:

pip install numODEsolver

Example

solver = solver()
f = solver.get_function("cos(x)")
x,y = solver.solve_rk4(f,x0=0,y0=1,n=10000,bound=10.1)
solver.plot(x,y,xlabel="x",ylabel="y",title="rk4")
print(solver.get_value(x,y,val=10,dec=5)

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!

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.1.tar.gz (3.5 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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: numodesolver-0.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

Hashes for numodesolver-0.1.tar.gz
Algorithm Hash digest
SHA256 75dbb1f54f17bd073a1af6b7f06ec025767b1528fbafea3efc0d0f18cb7144b1
MD5 6ed66b1782189825009053f0e570e32a
BLAKE2b-256 e1b3574bcb2a25b909ee340755f0b1a120cac4c832c667b60bbe60caac2aaeb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: numODEsolver-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07fb9de6a4c8c07c46f5736c51bee5b7b35e72e3645aa928365c93294c1f9b41
MD5 7c906f51dd20712fa5a84ff38a35ad4b
BLAKE2b-256 7cca26405ef2c8740841c47dbe84a5fea61f9a9c63ef8b99b6e715951404ca28

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