Skip to main content

panel_midpoints

Function panel_midpoints 

Source
pub fn panel_midpoints(a: f64, b: f64, n: usize) -> (Vec<f64>, f64)
Expand description

The midpoints of n equal panels of [a, b], a + (i + ½) h with h = (b − a)/n, and h: the nodes of the composite midpoint rule.