Skip to main content

No project description provided

Project description

Runge-Kutta 4 (RK4) Solver

This Python package implements the Runge-Kutta 4th order (RK4) method for solving systems of ordinary differential equations (ODEs).

It is designed to numerically approximate solutions of coupled differential equations of the form:

  • x'(t) = f1(x, y)
  • y'(t) = f2(x, y)

With both being parameters of function RK4.

Features

  • RK4 numerical integration for 2D systems
  • No external dependencies required
  • Lightweight and fast implementation
  • Python 3+ required

Usage

from rk4_solver import rk4

def f1(x, y):
    return x + y

def f2(x, y):
    return x - y

x_vals, y_vals = rk4(f1, f2)

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

rk4_solver-0.4.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file rk4_solver-0.4.0.tar.gz.

File metadata

  • Download URL: rk4_solver-0.4.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for rk4_solver-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b3575368267a991a5d3bdb74050cc8d9bde3909234ad8a1edfa6595982d4fda0
MD5 e11484e51d5ccb275888d76b399c81c0
BLAKE2b-256 90bcf00d34f4e2691f19f93c135cffb6e216ce684276b8a077cdfd475e812c14

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