legendre_rule, a C code which generates a specific Gauss-Legendre quadrature rule, based on user input.
The rule is written to three files for easy use as input to other programs.
The Gauss-Legendre quadrature rule is used as follows:
Integral ( A <= x <= B ) f(x) dxis to be approximated by
Sum ( 1 <= i <= order ) w(i) * f(x(i))
legendre_rule order a b filenamewhere
The information on this web page is distributed under the MIT license.
legendre_rule is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
c_rule, a C code which computes a quadrature rule which estimates the integral of a function f(x), which might be defined over a one dimensional region (a line) or more complex shapes such as a circle, a triangle, a quadrilateral, a polygon, or a higher dimensional region, and which might include an associated weight function w(x).
legendre_exactness, a C code which tests the monomial exactness of quadrature rules for the Legendre problem of integrating a function with density 1 over the interval [-1,+1].
legendre_polynomial, a C code which evaluates the Legendre polynomial and associated functions.
legendre_fast_rule, a C code which uses a fast (order N) algorithm to compute a Gauss-Legendre quadrature rule of given order.