pub struct BogackiShampine {
pub abs_tol: Scalar,
pub rel_tol: Scalar,
pub dt_beta: Scalar,
pub dt_expn: Scalar,
pub dt_cut: Scalar,
pub dt_min: 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)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.
dt_cut: ScalarCut back factor for the time step.
dt_min: ScalarMinimum value for the time step.
Trait Implementations§
Source§impl Debug for BogackiShampine
impl Debug for BogackiShampine
Source§impl Default for BogackiShampine
impl Default for BogackiShampine
Source§impl<Y, U> Explicit<Y, U> for BogackiShampine
impl<Y, U> Explicit<Y, U> for BogackiShampine
const SLOPES: usize = 4usize
Source§impl<Y, Z, U, V> ExplicitIV<Y, Z, U, V> for BogackiShampine
impl<Y, Z, U, V> ExplicitIV<Y, Z, U, V> for BogackiShampine
const SLOPES: usize = 4usize
Source§fn integrate(
&self,
function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>,
evaluate: impl FnMut(Scalar, &Y, &Z) -> Result<Z, String>,
time: &[Scalar],
initial_condition: Y,
initial_evaluation: Z,
) -> Result<(Vector, U, U, V), IntegrationError>
fn integrate( &self, function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>, evaluate: impl FnMut(Scalar, &Y, &Z) -> Result<Z, String>, time: &[Scalar], initial_condition: Y, initial_evaluation: Z, ) -> Result<(Vector, U, U, V), IntegrationError>
Solves an initial value problem by explicitly integrating a system of ordinary differential equations with internal variables. Read more
Source§impl<Y, U> InterpolateSolution<Y, U> for BogackiShampine
impl<Y, U> InterpolateSolution<Y, U> for BogackiShampine
Source§impl<Y, Z, U, V> InterpolateSolutionIV<Y, Z, U, V> for BogackiShampine
impl<Y, Z, U, V> InterpolateSolutionIV<Y, Z, U, V> for BogackiShampine
Source§impl<Y, U> OdeSolver<Y, U> for BogackiShampine
impl<Y, U> OdeSolver<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