hermite_integrands, a C code which defines integration problems over infinite intervals of the form (-oo,+oo).
The test integrands would normally be used to testing one dimensional quadrature software. It is possible to invoke a particular function by index, or to try out all available functions, as demonstrated in the sample calling program.
For a given integrand function f(x), the problem is to estimate
I(f) = integral ( -oo < x < +oo ) w(x) * f(x) dx
We consider three variations of the problem, depending on the form of the weight factor w(x):
Integral ( -oo < x < +oo ) f(x) dx
Integral ( -oo < x < +oo ) exp(-x*x) f(x) dx
Integral ( -oo < x < +oo ) exp(-x*x/2) f(x) dx
For option 0, the test integrands have the form:
For option 1, the test integrands have the form:
For option 2, the test integrands have the form:
The library includes not just the integrand, but also the exact value of the integral (or, typically, an estimate of this value), and a title for the problem. Thus, for each integrand function, several routines are supplied. For instance, for function #1, we have the routines:
Moreover, since the same interface is used for each function, if you wish to work with problem 5 instead, you simply change the "01" to "05" in your routine calls.
If you wish to call all of the functions, then you simply use the generic interface, which requires you to specify the problem number as an extra input argument:
Some demonstration routines are built in for simple quadrature methods:
The computer code and data files described and made available on this web page are distributed under the MIT license
hermite_integrands is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.
HERMITE_EXACTNESS, a C code which tests the polynomial exactness of Gauss-Hermite quadrature rules for estimating the integral of a function with density exp(-x^2) over the interval (-oo,+oo).
HERMITE_RULE, a C code which can compute and print a Gauss-Hermite quadrature rule.
LAGUERRE_TEST_INT, a C code which defines test integrands for quadrature rules for estimating the integral of a function with density exp(-x) over the interval [0,+oo).
QUADRATURE_RULES_HERMITE_PHYSICIST, a dataset directory which contains Gauss-Hermite quadrature rules, for integration on the interval (-oo,+oo), with weight function exp(-x^2).
QUADRATURE_RULES_HERMITE_PROBABILIST, a dataset directory which contains Gauss-Hermite quadrature rules, for integration on the interval (-oo,+oo), with weight function exp(-x^2/2).
QUADRATURE_RULES_HERMITE_UNWEIGHTED, a dataset directory which contains Gauss-Hermite quadrature rules, for integration on the interval (-oo,+oo), with weight function 1.
TEST_INT, a C code which defines test integrands for 1D quadrature rules.
TEST_INT_2D, a C code which defines test integrands for 2D quadrature rules.