pub fn grid_points(a: f64, b: f64, n: usize) -> (Vec<f64>, f64)
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.
n
a
b
h = (b − a)/(n − 1)