Skip to main content

solve_bvp_collocation

Function solve_bvp_collocation 

Source
pub fn solve_bvp_collocation<F, G>(
    f: F,
    boundary: G,
    x: Vec<f64>,
    y: Vec<Vec<f64>>,
    options: BvpOptions,
) -> Result<BvpSolution, ErrorsJSL>
where F: Fn(f64, &[f64]) -> Vec<f64>, G: Fn(&[f64], &[f64]) -> Vec<f64>,
Expand description

Solves the boundary value problem by Hermite-Simpson collocation, starting from the mesh x (strictly monotonic, at least two points) and the guess y at each mesh point. Intervals whose relative defect exceeds the tolerance are split until it is met everywhere or the mesh reaches max_nodes (then converged is false).