Example of a trapezoidal predictor-corrector method
first calculate an initial guess value via Euler:
next improve the initial guess through iteration of the trapezoid rule:
...
until the guesses converge to within some error tolerance e:
Once convergence is reached, then use the final guess as the next step:
If the guesses don't converge within some number of steps, such as reduce h and repeat the step. If I remember correctly, the iterative process converges quadratically. If the guesses converge very quickly, you might consider increasing h, but note that the overall error is unrelated to convergence in the algorithm but instead to the step size and the core method, which in this example is a trapezoidal, (linear) approximation of the actual function. Also see stiff equation