pub struct ODE {
pub f: Box<dyn Fn(f64, f64) -> f64>,
pub t0: f64,
pub y0: f64,
}Expand description
An ordinary differential equation dy/dt = f(t, y) with initial value y(t₀) = y₀.
Fields§
§f: Box<dyn Fn(f64, f64) -> f64>Right-hand side f(t, y)
t0: f64Initial time t₀
y0: f64Initial value y₀ = y(t₀)
Implementations§
Auto Trait Implementations§
impl Freeze for ODE
impl !RefUnwindSafe for ODE
impl !Send for ODE
impl !Sync for ODE
impl Unpin for ODE
impl UnsafeUnpin for ODE
impl !UnwindSafe for ODE
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