Skip to main content

OdeProblem

Struct OdeProblem 

Source
pub struct OdeProblem<'a> {
    pub dy: &'a Func,
    pub var: &'a Symbol,
    pub y_var: &'a Symbol,
    pub x0: &'a Value,
    pub y0: &'a Value,
    pub x_end: &'a Value,
}
Expand description

A first-order initial-value ODE problem dy/dx = f(x, y) handed to an OdeSolver.

Fields§

§dy: &'a Func

The right-hand-side function giving the derivative.

§var: &'a Symbol

The independent-variable symbol (typically x).

§y_var: &'a Symbol

The dependent-variable symbol (typically y).

§x0: &'a Value

The initial value of the independent variable.

§y0: &'a Value

The initial value of the dependent variable.

§x_end: &'a Value

The end value of the independent variable to integrate toward.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for OdeProblem<'a>

§

impl<'a> !UnwindSafe for OdeProblem<'a>

§

impl<'a> Freeze for OdeProblem<'a>

§

impl<'a> Send for OdeProblem<'a>

§

impl<'a> Sync for OdeProblem<'a>

§

impl<'a> Unpin for OdeProblem<'a>

§

impl<'a> UnsafeUnpin for OdeProblem<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.