pub struct DormandPrince45 {
pub atol: f64,
pub rtol: f64,
pub dt_min: f64,
pub dt_max: f64,
}Expand description
Dormand-Prince RK45 adaptive integrator with FSAL (First Same As Last).
This is the method underlying MATLAB’s ode45 and SciPy’s RK45. The
5th-order solution is used to advance the state; the 4th-order solution is
used only for error estimation. The FSAL property means only 5 new
function evaluations per accepted step (the last stage of step n equals the
first stage of step n+1).
Fields§
§atol: f64Absolute error tolerance.
rtol: f64Relative error tolerance.
dt_min: f64Minimum allowed step size.
dt_max: f64Maximum allowed step size.
Implementations§
Source§impl DormandPrince45
impl DormandPrince45
Sourcepub fn new(atol: f64, rtol: f64, dt_min: f64, dt_max: f64) -> Self
pub fn new(atol: f64, rtol: f64, dt_min: f64, dt_max: f64) -> Self
Construct with specified tolerances and step bounds.
Sourcepub fn default_tolerances() -> Self
pub fn default_tolerances() -> Self
Construct with default tolerances (1e-6 / 1e-6).
Auto Trait Implementations§
impl Freeze for DormandPrince45
impl RefUnwindSafe for DormandPrince45
impl Send for DormandPrince45
impl Sync for DormandPrince45
impl Unpin for DormandPrince45
impl UnsafeUnpin for DormandPrince45
impl UnwindSafe for DormandPrince45
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.