samedi 22 décembre 2018

matlab ode45 and boost odeint absolute and relative tolerances

I've been testing the ode45 matlab results against boost odeint and I can't find an error.

My problem is the same this link: Comparison of odeint's runge_kutta4 with Matlab's ode45

My doubt is about he wrote:

"make sure that your C++ code uses the same absolute and relative tolerances as ode45 (defaults are 1e-6 and 1e-3, respectively)"

How do I know my absolute and relative tolerances in c++-11? Is this set or I have to code?

Thanks!

Aucun commentaire:

Enregistrer un commentaire