Skip to main content

Module midpoint_integration_engine

Module midpoint_integration_engine 

Source
Expand description

The composite midpoint rule.

See the book entry Newton-Cotes rules.

Structs§

MidpointIntegrationEngine
The composite midpoint rule: ∫ₐᵇ f ≈ h Σ f(a + (i + ½) h) over n panels of width h = (b − a)/n, sampling f at the centre of each panel.