Skip to main content

BvpSystem

Trait BvpSystem 

Source
pub trait BvpSystem: Send + Sync {
    // Required methods
    fn derivative(&self, t: f64, y: f64) -> f64;
    fn boundary_left(&self, a: f64) -> f64;
    fn boundary_right(&self, b: f64) -> f64;
}
Expand description

Represents a Boundary Value Problem system

BVPs have conditions at both boundaries (e.g., y(a) = α, y(b) = β)

Required Methods§

Source

fn derivative(&self, t: f64, y: f64) -> f64

Computes the derivative dy/dt at state (t, y)

Source

fn boundary_left(&self, a: f64) -> f64

Boundary condition at t = a

Source

fn boundary_right(&self, b: f64) -> f64

Boundary condition at t = b

Implementors§