-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Dear Ekin,
I appreciate your Python package 'desolver'. In this package, the methods 'Euler', 'RK4' or 'Runge-Kutta 4' seem to work fine.
However, I am writing you to inform you that the Heun method (see e.g. https://en.wikipedia.org/wiki/Heun's_method) does not seem to be properly implemented. For that, I did try all of the method's which could potentially represent Heun's method, i.e.
'Euler-Trap', 'Euler-Trapezoidal', 'EulerSolver', 'EulerTrapSolver', 'Explicit Euler-Trapezoidal', "Explicit Heun's", 'Explicit Midpoint', "Heun's", 'HeunEulerSolver', 'HeunsSolver',
And which of these method is in fact supposed to be the Heun method, i.e. the one described at the above wikipedia link?
More precisely, I did use your package 'desolver' in order to solve the ODE dx/dt = - sqrt(x/t) with initial condition x(t=1.0) = x_0 = 1.0 and stepsize of Dt=0.1. With Heun's method (as described on the wikipedia link above), one obtains
x_1 = x(t=1.1) = 0.9047733 and
x_2 = x(t=1.2) = 0.81824429
But I do not get these values with any of the methods listed above. By the way, some of the methods listed above also yield the very same values (for x_1 and x_2).
Could you please look into this soon?
Thank you and best regards,
Thomas