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§
Sourcefn derivative(&self, t: f64, y: f64) -> f64
fn derivative(&self, t: f64, y: f64) -> f64
Computes the derivative dy/dt at state (t, y)
Sourcefn boundary_left(&self, a: f64) -> f64
fn boundary_left(&self, a: f64) -> f64
Boundary condition at t = a
Sourcefn boundary_right(&self, b: f64) -> f64
fn boundary_right(&self, b: f64) -> f64
Boundary condition at t = b