New answers tagged

2 votes

scipy odeint - Excess work done on this call

I modified your code to use the more up-to-date solve_ivp and it no longer gets the problem: ...
Tarik's user avatar
  • 173
1 vote

Local truncation error of given implicit 1-step scheme

You insert the exact solution on both sides so that $y'(t_{n+1})=f(t_{n+1},y(t_{n+1}))$ and $y''(t_{n})=f'(t_{n},y(t_{n}))$. Thus \begin{align} O(h^{p+1})=g(h)&=-y(t+h)+y(t)+\frac{h}{6}[4y'(t)+2y'(...
Lutz Lehmann's user avatar
  • 5,489

Top 50 recent answers are included