chebyshev1_rule, a Python code which generates a specific Gauss-Chebyshev type 1 quadrature rule, based on user input.
The rule is written to three files for easy use as input to other programs.
The Gauss Chevbyshev type 1 quadrature rule is used as follows:
Integral ( A <= x <= B ) f(x) / sqrt ( ( x - A ) * ( B - x ) ) dxis to be approximated by
Sum ( 1 <= i <= order ) w(i) * f(x(i))
chebyshev1_rule ( order, a, b, 'filename' )where
The information on this web page is distributed under the MIT license.
chebyshev1_rule is available in a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
python_rule, a Python 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).