Closed hfsf closed 3 years ago
BDF and AdamsMoutlon are implemented as fixed-step solvers, while Runge-Kutta (RK45, DOP853) are implemented as variable-step solvers. Hence, while this works for variable step:
nbkode.RK45(rhs, t0, y0)
you need to provide a step parameter (named h
) to the fixed-step solvers:
nbkode.BDF1(rhs, t0, y0, h=0.1)
We have to explain this in the documentation.
Thanks for the reply. I guess the inclusion of adaptive step size in BDF (as in scipy version) would be a great addition to the software. Again, many thanks for the attention.
I am currently having trouble to use BDF solver. The numnakit-ode package has version 0.4, installed though pip. When following the tutorial (https://numbakit-ode.readthedocs.io/en/latest/tutorial.html), only replacing the solver name to any of BDF's family solvers, i get the following error output (in the ecample I've used BDF1):
I could reproduce the above error for AdamsMoulton solvers. The Explicit solvers (RK45, DOP853) works fine. Please help.