clenshaw_curtis_rule, a Fortran90 code which generates a Clenshaw Curtis quadrature rule.
The rule is written to three files for easy use as input to other codes.
The standard Clenshaw Curtis 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))
clenshaw_curtis_rule order a b filenamewhere
The information on this web page is distributed under the MIT license.
clenshaw_curtis_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.
f90_rule, a Fortran90 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).