product_rule_test, a C++ code which calls product_rule(), which creates a multidimensional quadrature rule by using a product of distinct one-dimensional quadrature rules.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

product_rule, a C++ code which constructs a product quadrature rule from distinct 1D factor rules.

Source Code:

As an example, we make a 2D product rule.

The first factor is a 1D Clenshaw Curtis rule of order 3:

The second factor is a 1D Gauss Legendre rule of order 2:

We give the command

product_rule factors.txt

The resulting product rule files:

Last revised on 01 April 2020.