Skip to main content

FdeSystem

Trait FdeSystem 

Source
pub trait FdeSystem<S: Scalar> {
    // Required methods
    fn dim(&self) -> usize;
    fn alpha(&self) -> S;
    fn rhs(&self, t: S, y: &[S], f: &mut [S]);

    // Provided method
    fn is_valid_order(&self) -> bool { ... }
}
Expand description

Trait for fractional differential equation systems.

Defines an FDE of the form:

D^α y(t) = f(t, y),  y(0) = y₀

where D^α is the Caputo fractional derivative of order α.

Required Methods§

Source

fn dim(&self) -> usize

Dimension of the state space.

Source

fn alpha(&self) -> S

Fractional order α ∈ (0, 1].

When α = 1, this reduces to an ordinary ODE.

Source

fn rhs(&self, t: S, y: &[S], f: &mut [S])

Evaluate the right-hand side f(t, y).

Provided Methods§

Source

fn is_valid_order(&self) -> bool

Check if the order is valid (0 < α ≤ 1).

Implementors§