Quadrature Rules of Gauss-Legendre Type


These are some examples of quadrature rules of Gauss-Legendre type.

Gauss-Legendre quadrature rules are designed to approximate integrals on the interval [-1,1].

Standard Gauss-Legendre quadrature assumes that the integrand we are considering has a form like:

        Integral ( -1 <= x <= +1 ) f(x) dx
      

A standard Gauss-Legendre quadrature rule is a set of n positive weights w and abscissas x so that

        Integral ( -1 <= x <= +1 ) f(x) dx
      
may be approximated by
        Sum ( 1 <= I <= N ) w(i) * f(x(i))
      

For this directory, a quadrature rule is stored as three files, containing the weights, the points, and a file containing two points defining the endpoints of the region. The first endpoint is either 0 or A; the second endpoint is really infinity, and we will simply place a "large" value here, trusting that the user will already know that this is merely a placeholder for infinity.

Example:

We consider a standard Gauss-Legendre quadrature rule of order 4.

Here is the text of the "W" file storing the weights of such a rule:


        0.3478548451374538    
        0.6521451548625461    
        0.6521451548625461    
        0.3478548451374538    
       

Here is the text of the "X" file storing the abscissas of such a rule:

 
       -0.8611363115940526    
       -0.3399810435848563    
        0.3399810435848563    
        0.8611363115940526    
      

Here is the text of the "R" file storing the lower and upper limits of the region:


        -1.0
         1.0
      

Related Data and Programs:

Sample Files:

Standard Gauss-Legendre Rule, Order 1:

Standard Gauss-Legendre Rule, Order 2:

Standard Gauss-Legendre Rule, Order 4:

Standard Gauss-Legendre Rule, Order 8:

Standard Gauss-Legendre Rule, Order 16:

Standard Gauss-Legendre Rule, Order 32:

Standard Gauss-Legendre Rule, Order 64:

You can go up one level to the DATASETS page.


Last revised on 12 September 2007.