Skip to main content

Module calculate_midpoints

Module calculate_midpoints 

Source
Expand description

Sample points for the composite Newton-Cotes rules.

Functions§

grid_points
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.
panel_midpoints
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.