Boole's rule
Template:Short description Boole's rule is a method of numerical quadrature arising in calculus, and named after George Boole. Boole's rule and the composite Boole rule approximate the area under a curve over a fixed interval using 5 equally spaced points, and is designed to exactly integrate 5th-order polynomials over that interval. It is a member of the Newton–Cotes family of rules.
Formula
Simple Boole's rule
It approximates an integral by using the values of Template:Mvar at five equally spaced points:Template:Sfn
It is expressed thus in Abramowitz and Stegun's Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables:Template:Sfn for some number Template:Tmath between Template:Tmath and Template:Tmath, and Template:Nowrap. It is sometimes erroneously referred to as Bode's rule, due to a typographical error that propagated from Abramowitz and Stegun.Template:Sfn
The following constitutes a very simple implementation of the method in Common Lisp which ignores the error term:
Composite Boole's rule
In cases where the integration is permitted to extend over equidistant sections of the interval , the composite Boole's rule might be applied. Given divisions, where Template:Nobr the integrated value amounts toTemplate:Sfn where the error term is similar to above. The following Common Lisp code implements the aforementioned formula: Template:Hidden