is there a c++ library for ordinary differential equation (ODE) solvers?

14,494

Solution 1

You can also try odeint. It has the classical Runge-Kutta solvers, Rosenbrock4 for stiff systems and some multi-step method. It is header-only, but you need the boost libraries.

Solution 2

The GNU Scientific Library has several differential equation solvers. They have one that uses Prince-Dormand. It's written in C so you shouldn't have trouble compiling it.

Share:
14,494
kirill_igum
Author by

kirill_igum

former AI lead. now, consulting regarding data compliance (CCPA, GDPR, LGPD, ...) and data infrastructure design.

Updated on July 11, 2022

Comments

  • kirill_igum
    kirill_igum almost 2 years

    More specifically, i'm interested in 8th order Dormand-Prince embedded method, it's based on Runge-Kutta, and stiff equations.

    I use Numerical Recipes 3 but i often have trouble compiling their libraries. I'd like to know of alternatives.