![](/img/trans.png)
[英]How to correctly set the 'rtol' and 'atol' in scipy integration module 'solve_ivp' for solving a system of ODE with unknown analytic solution?
我試圖使用 solve_ivp 在 Python 中重現 ode45 求解器的一些結果。 盡管所有參數、初始條件、步長以及“atol”和“rtol”(即 1e-6 和 1e-3)都相同,但我得到了不同的解決方案。 這兩種解決方案都收斂於周期性解決方案,但類型不同。 由於 solve_ivp 使用與 ...