Skip to main content

ODEFunction4D

Trait ODEFunction4D 

pub trait ODEFunction4D {
    // Required method
    fn derivatives(&self, t: f64, y: &[f64; 4]) -> [f64; 4];
}
Expand description

4-state ODE derivative trait for Rk4Integrator4D.

Required Methods§

fn derivatives(&self, t: f64, y: &[f64; 4]) -> [f64; 4]

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§