chebyshev1_rule


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 ) ) dx
      
is to be approximated by
        Sum ( 1 <= i <= order ) w(i) * f(x(i))
      

Usage:

chebyshev1_rule ( order, a, b, 'filename' )
where

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

chebyshev1_rule is available in a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

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).

Source Code:


Last revised on 17 May 2023.