pub struct RKF78 {
pub tol: f64,
pub safety_factor: f64,
pub min_step_size: f64,
pub max_step_size: f64,
pub max_step_iter: usize,
}Expand description
Runge-Kutta-Fehlberg 7/8th order integrator.
This integrator uses the Runge-Kutta-Fehlberg 7(8) method, an adaptive step size integrator. It evaluates f(x,y) thirteen times per step, using embedded 7th and 8th order Runge-Kutta estimates to estimate the solution and the error. The 7th order solution is propagated, and the difference between the 8th and 7th order solutions is used for error estimation and step size control.
§Member variables
tol: The tolerance for the estimated error.safety_factor: The safety factor for the step size adjustment.min_step_size: The minimum step size.max_step_size: The maximum step size.max_step_iter: The maximum number of iterations per step.
§References
- Meysam Mahooti (2025). Runge-Kutta-Fehlberg (RKF78), MATLAB Central File Exchange.
Fields§
§tol: f64§safety_factor: f64§min_step_size: f64§max_step_size: f64§max_step_iter: usizeImplementations§
Trait Implementations§
Source§impl ButcherTableau for RKF78
impl ButcherTableau for RKF78
const C: &'static [f64]
const A: &'static [&'static [f64]]
const BU: &'static [f64]
const BE: &'static [f64]
fn tol(&self) -> f64
fn safety_factor(&self) -> f64
fn min_step_size(&self) -> f64
fn max_step_size(&self) -> f64
fn max_step_iter(&self) -> usize
Source§impl<'de> Deserialize<'de> for RKF78
impl<'de> Deserialize<'de> for RKF78
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for RKF78
Auto Trait Implementations§
impl Freeze for RKF78
impl RefUnwindSafe for RKF78
impl Send for RKF78
impl Sync for RKF78
impl Unpin for RKF78
impl UnwindSafe for RKF78
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more