pub struct BogackiShampine {
pub abs_tol: Scalar,
pub rel_tol: Scalar,
pub dt_beta: Scalar,
pub dt_expn: Scalar,
}Expand description
Explicit, three-stage, third-order, variable-step, Runge-Kutta method.1
\frac{dy}{dt} = f(t, y)t_{n+1} = t_n + hk_1 = f(t_n, y_n)k_2 = f(t_n + \tfrac{1}{2} h, y_n + \tfrac{1}{2} h k_1)k_3 = f(t_n + \tfrac{3}{4} h, y_n + \tfrac{3}{4} h k_2)y_{n+1} = y_n + \frac{h}{9}\left(2k_1 + 3k_2 + 4k_3\right)k_4 = f(t_{n+1}, y_{n+1})e_{n+1} = \frac{h}{72}\left(-5k_1 + 6k_2 + 8k_3 - 9k_4\right)h_{n+1} = \beta h \left(\frac{e_\mathrm{tol}}{e_{n+1}}\right)^{1/p}P. Bogacki and L.F. Shampine, Appl. Math. Lett. 2, 321 (1989). ↩
Fields§
§abs_tol: ScalarAbsolute error tolerance.
rel_tol: ScalarRelative error tolerance.
dt_beta: ScalarMultiplier for adaptive time steps.
dt_expn: ScalarExponent for adaptive time steps.
Trait Implementations§
Source§impl Debug for BogackiShampine
impl Debug for BogackiShampine
Source§impl Default for BogackiShampine
impl Default for BogackiShampine
Source§impl<Y, U> InterpolateSolution<Y, U> for BogackiShampine
impl<Y, U> InterpolateSolution<Y, U> for BogackiShampine
Auto Trait Implementations§
impl Freeze for BogackiShampine
impl RefUnwindSafe for BogackiShampine
impl Send for BogackiShampine
impl Sync for BogackiShampine
impl Unpin for BogackiShampine
impl UnwindSafe for BogackiShampine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more