Boole's rule

Last updated

In mathematics, Boole's rule, named after George Boole, is a method of numerical integration.

Contents

Formula

Simple Boole's Rule

It approximates an integral: by using the values of f at five equally spaced points: [1]

It is expressed thus in Abramowitz and Stegun: [2] where the error term is for some number between and where 945 = 1 × 3 × 5 × 7 × 9.

It is often known as Bode's rule, due to a typographical error that propagated from Abramowitz and Stegun. [3]

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 mod , the integrated value amounts to: [4]

where the error term is similar to above. The following Common Lisp code implements the aforementioned formula:


See also

Notes

References