pub struct HigherOrderODE<F: IntegrateFloat> {
pub order: usize,
pub dependent_var: String,
pub independent_var: String,
pub expression: SymbolicExpression<F>,
}Expand description
Represents a higher-order ODE
Fields§
§order: usizeThe order of the ODE
dependent_var: StringThe dependent variable name
independent_var: StringThe independent variable name (usually time)
expression: SymbolicExpression<F>The symbolic expression for the highest derivative as a function of lower derivatives and the independent variable
Implementations§
Source§impl<F: IntegrateFloat> HigherOrderODE<F>
impl<F: IntegrateFloat> HigherOrderODE<F>
Sourcepub fn new(
order: usize,
dependent_var: impl Into<String>,
independent_var: impl Into<String>,
expression: SymbolicExpression<F>,
) -> IntegrateResult<Self>
pub fn new( order: usize, dependent_var: impl Into<String>, independent_var: impl Into<String>, expression: SymbolicExpression<F>, ) -> IntegrateResult<Self>
Create a new higher-order ODE
Sourcepub fn state_variables(&self) -> Vec<Variable>
pub fn state_variables(&self) -> Vec<Variable>
Get the state variable names for the first-order system
Auto Trait Implementations§
impl<F> Freeze for HigherOrderODE<F>where
F: Freeze,
impl<F> RefUnwindSafe for HigherOrderODE<F>where
F: RefUnwindSafe,
impl<F> Send for HigherOrderODE<F>where
F: Send,
impl<F> Sync for HigherOrderODE<F>where
F: Sync,
impl<F> Unpin for HigherOrderODE<F>where
F: Unpin,
impl<F> UnwindSafe for HigherOrderODE<F>where
F: UnwindSafe,
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> 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