pub struct LinearODE {
pub a: Box<dyn Fn(f64) -> f64>,
pub b: Box<dyn Fn(f64) -> f64>,
pub t0: f64,
pub y0: f64,
}Expand description
A linear ODE dy/dt = a(t)y + b(t) with initial value.
Fields§
§a: Box<dyn Fn(f64) -> f64>Coefficient function a(t)
b: Box<dyn Fn(f64) -> f64>Forcing function b(t)
t0: f64Initial time
y0: f64Initial value
Implementations§
Auto Trait Implementations§
impl Freeze for LinearODE
impl !RefUnwindSafe for LinearODE
impl !Send for LinearODE
impl !Sync for LinearODE
impl Unpin for LinearODE
impl UnsafeUnpin for LinearODE
impl !UnwindSafe for LinearODE
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