Skip to main content

grid_points

Function grid_points 

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

n equally spaced points from a to b inclusive, and their spacing h = (b − a)/(n − 1): the nodes of the composite trapezoid and Simpson rules.