Expand description
The composite trapezoid rule.
See the book entry Newton-Cotes rules.
Structs§
- Trapezoidal
Integration Engine - The composite trapezoid rule:
∫ₐᵇ f ≈ h [½ f(x₀) + f(x₁) + ⋯ + f(xₙ₋₂) + ½ f(xₙ₋₁)]onnequally spaced pointsxᵢ = a + i h,h = (b − a)/(n − 1).