Skip to main content

fem_1d

Function fem_1d 

Source
pub fn fem_1d<P, Q, F>(
    p: P,
    q: Q,
    f: F,
    nodes: &[f64],
    left: EndCondition,
    right: EndCondition,
) -> Result<Vec<f64>, ErrorsJSL>
where P: Fn(f64) -> f64, Q: Fn(f64) -> f64, F: Fn(f64) -> f64,
Expand description

Solves −(p u')' + q u = f on the increasing nodes, returning u at the nodes.