QUADRULE is a collection of Mathematica scripts which can be used to compute and print certain simple quadrature rules.
Mathematica has built-in functions for Newton-Cotes and Gauss-Legendre rules. It can also be coaxed into computing Hermite and Laguerre quadrature rules. The scripts given here present the results in a form suitable for copying into a program in C, FORTRAN or MATLAB.
Values computed by these scripts were, in some cases, used to define quadrature lookup values in the C, C++, FORTRAN90 and MATLAB "QUADRULE" libraries.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
QUADRULE is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATHEMATICA version and a MATLAB version.
ARBITRARY_WEIGHT_RULE, a MATHEMATICA program which accepts a formula for an arbitrary (but nonnegative) weight function over an interval, and determines the points and weights of a corresponding Gaussian quadrature rule, by Fukuda, Katsuya, Alt and Matveenko.
NEWTON_COTES is a MATHEMATICA library which computes the points and weights for Newton-Cotes quadrature.
QUADRATURE_WEIGHTS a FORTRAN90 library which illustrates techniques for computing the weights of a quadrature rule, assuming that the points have been specified.
TOMS655
a C library which
computes the weights for interpolatory quadrature rules;
this library is commonly called IQPACK;
this is a C version of ACM TOMS algorithm 655.
You can go up one level to the Mathematica packages and notebooks.