Boole's Rule
   HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, Boole's rule, named after
George Boole George Boole ( ; 2 November 1815 – 8 December 1864) was a largely self-taught English mathematician, philosopher and logician, most of whose short career was spent as the first professor of mathematics at Queen's College, Cork in Ireland. H ...
, is a method of
numerical integration In analysis, numerical integration comprises a broad family of algorithms for calculating the numerical value of a definite integral. The term numerical quadrature (often abbreviated to quadrature) is more or less a synonym for "numerical integr ...
.


Formula


Simple Boole's Rule

It approximates an integral: \int_^ f(x)\,dx by using the values of at five equally spaced points: \begin & x_0 = a\\ & x_1 = x_0 + h \\ & x_2 = x_0 + 2h \\ & x_3 = x_0 + 3h \\ & x_4 = x_0 + 4h = b \end It is expressed thus in
Abramowitz and Stegun ''Abramowitz and Stegun'' (''AS'') is the informal name of a 1964 mathematical reference work edited by Milton Abramowitz and Irene Stegun of the United States National Bureau of Standards (NBS), now the National Institute of Standards and T ...
: \int_^ f(x)\,dx = \frac\bigl 7f(x_0) + 32 f(x_1) + 12 f(x_2) + 32 f(x_3) + 7f(x_4) \bigr+ \text where the error term is -\,\frac for some number between and where . It is often known as Bode's rule, due to a typographical error that propagated from Abramowitz and Stegun. The following constitutes a very simple implementation of the method in
Common Lisp Common Lisp (CL) is a dialect of the Lisp programming language, published in American National Standards Institute (ANSI) standard document ''ANSI INCITS 226-1994 (S2018)'' (formerly ''X3.226-1994 (R1999)''). The Common Lisp HyperSpec, a hyperli ...
which ignores the error term:


Composite Boole's Rule

In cases where the integration is permitted to extend over equidistant sections of the interval
, b The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
/math>, the composite Boole's rule might be applied. Given N divisions, where N mod 4 = 0, the integrated value amounts to: \int_^ f(x)\,dx = \frac \left( 7(f(x_0) + f(x_N)) + 32\left(\sum_ f(x_i)\right) + 12\left(\sum_ f(x_i)\right) + 14\left(\sum_ f(x_i)\right) \right) + \text where the error term is similar to above. The following Common Lisp code implements the aforementioned formula:


See also

*
Newton–Cotes formulas In numerical analysis, the Newton–Cotes formulas, also called the Newton–Cotes quadrature rules or simply Newton–Cotes rules, are a group of formulas for numerical integration (also called ''quadrature'') based on evaluating the integrand a ...
*
Simpson's rule In numerical integration, Simpson's rules are several approximations for definite integrals, named after Thomas Simpson (1710–1761). The most basic of these rules, called Simpson's 1/3 rule, or just Simpson's rule, reads \int_a^b f(x) \, ...
*
Romberg's method In numerical analysis, Romberg's method is used to estimate the Integral, definite integral \int_a^b f(x) \, dx by applying Richardson extrapolation repeatedly on the trapezium rule or the rectangle rule (midpoint rule). The estimates generate ...


Notes


References

* * * * {{DEFAULTSORT:Boole's Rule Integral calculus Numerical analysis Numerical integration Articles with example Lisp (programming language) code