why my adaptive RK4 code cannot be as efficient as ode45?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I wrote a code of adaptive RK4 method, the tolerance can be changed, and the idea is based on wikipedia (compare the difference of RK2 and RK4 and modify the next step size)
However I can never get same quantity of data as ode45 with the computational time the same as ode45.
Why is my code much less efficient?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!