| Crates.io | ivp |
| lib.rs | ivp |
| version | 0.5.1 |
| created_at | 2025-09-10 20:44:57.966664+00 |
| updated_at | 2025-12-04 23:44:09.607872+00 |
| description | A Rust library for solving initial value problems (IVPs) for ordinary differential equations (ODEs). |
| homepage | https://github.com/Ryan-D-Gast/ivp |
| repository | https://github.com/Ryan-D-Gast/ivp |
| max_upload_size | |
| id | 1832995 |
| size | 461,888 |
Documentation | Examples | GitHub | Crates.io | PyPI
A library of numerical methods for solving initial value problems (IVPs)
for Rust and Python.
This library provides a pure Rust implementation of SciPy's solve_ivp function with slight modifications to the API to better fit Rust's design patterns. It is also available as a Python package with a SciPy-compatible API.
Currently implemented solvers:
cargo add ivp
pip install ivp-rs
from ivp import solve_ivp
import numpy as np
def exponential_decay(t, y):
return -0.5 * y
# Solve the ODE
sol = solve_ivp(exponential_decay, (0, 10), [1.0], method='RK45', rtol=1e-6, atol=1e-9)
print(f"Final time: {sol.t[-1]}")
print(f"Final state: {sol.y[:, -1]}")