Skip to main content

Module trapezoidal_integration_engine

Module trapezoidal_integration_engine 

Source
Expand description

The composite trapezoid rule.

See the book entry Newton-Cotes rules.

Structs§

TrapezoidalIntegrationEngine
The composite trapezoid rule: ∫ₐᵇ f ≈ h [½ f(x₀) + f(x₁) + ⋯ + f(xₙ₋₂) + ½ f(xₙ₋₁)] on n equally spaced points xᵢ = a + i h, h = (b − a)/(n − 1).