QUADRATURE_TEST_2D is a C++ program which reads three files that define a 2D quadrature rule, applies the quadrature rule to a set of test integrals, and reports the results.
The quadrature rule is defined by three text files:
The test integrals come from the TEST_INT_2D library.
quadrature_test_2d prefix
If the arguments are not supplied on the command line, the program will prompt for them.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
QUADRATURE_TEST_2D is available in a C++ version and a FORTRAN90 version and a MATLAB version.
GSL, a C++ library which includes routines for estimating multidimensional integrals.
INTEGRAL_TEST, a FORTRAN90 program which uses test integrals to evaluate sets of quadrature points.
NINT_EXACTNESS, a C++ program which demonstrates how to measure the polynomial exactness of a multidimensional quadrature rule.
NINTLIB, a C++ library which numerically estimates integrals in multiple dimensions.
PRODUCT_RULE, a C++ program which creates a multidimensional quadrature rule as a product of one dimensional rules.
PRODUCT_RULE_GL, a dataset directory which contains multidimensional quadrature rules formed as products of 1D Gauss-Legendre rules.
PRODUCT_RULE_TANH_SINH, a dataset directory which contains multidimensional quadrature rules formed as products of 1D tanh-sinh rules.
QUADRATURE_RULES, a dataset directory which contains a description and examples of quadrature rules defined by a set of "X", "W" and "R" files.
QUADRATURE_TEST, a C++ program which reads files defining a quadrature rule, and applies them to all the test integrals defined by TEST_NINT.
SPARSE_GRID_TANH_SINH, a dataset directory which contains multidimensional Smolyak sparse grids based on a 1D tanh-sinh rule;
STROUD, a C++ library which contains quadrature rules for a variety of unusual areas, surfaces and volumes in 2D, 3D and N-dimensions.
TEST_INT_2D, a C++ library which defines test integrands for 2D quadrature rules.
TEST_NINT, a C++ library which defines a set of integrand functions to be used for testing multidimensional quadrature rules and routines.
TESTPACK, a C++ library which defines a set of integrands used to test multidimensional quadrature.
PRODUCT_RULE_GL is a family of Gauss_Legendre product rules which includes 2D rules of orders 1x1, 2x2, 4x4, 8x8, 16x16 and 32x32.
PRODUCT_RULE_TANH_SINH is a family of tanh-sinh product rules which includes 2D rules of orders 1x1, 3x3, 7x7, 15x15, 31x31, 63x63, and 127x127 points.
SPARSE_GRID_CC is a family of Clenshaw Curtis sparse grid rules which includes rules of order 1, 5, 13, 29, 65, 145, 321, 705. 1537, 3329 and 7169 points. These rules have problems with many of the test integrands, which have endpoint singularities.
SPARSE_GRID_F2 is a family of Fejer Type 2 sparse grid rules which includes rules of order 1, 5, 17, 49, 129, 321, 769, and 1793 points.
SPARSE_GRID_NCO is a family of Newton Cotes Open sparse grid rules which includes rules of order 1, 5, 17, 49, 129, 321, and 769 points. These rules do a terrible job, which reflects the instability of the Newton Cotes rules.
SPARSE_GRID_TANH_SINH is a family of tanh-sinh sparse grid rules which includes rules of order 1, 5, 17, 49, 129, 321, 769, 1793 and 4097 points.
You can go up one level to the C++ source codes.