quad_rule
quad_rule,
a MATLAB code which
sets quadrature rules, used to approximate the integral of a function
over various domains.
quad_rule returns the abscissas and weights for a variety of
one dimensional quadrature rules for approximating the integral
of a function. The best rule is generally Gauss-Legendre quadrature,
but other rules offer special features, including the ability to
handle certain weight functions, to approximate an integral
on an infinite integration region, or to estimate the approximation
error.
Licensing:
The computer files described and made available on this web page
are distributed under
the MIT license
Languages:
quad_rule is available in
a C version and
a C++ version and
a Fortran90 version and
a MATLAB version and
an Octave version and
a Python version.
Related Data and Programs:
quad_rule_test
alpert_rule,
a MATLAB code which
can set up an alpert quadrature rule for functions which are
regular, log(x) singular, or 1/sqrt(x) singular.
clenshaw_curtis_rule,
a MATLAB code which
defines a multiple dimension clenshaw curtis quadrature rule.
line_felippa_rule,
a MATLAB code which
returns the points and weights of a felippa quadrature rule
over the interior of a line segment in 1d.
quadmom,
a MATLAB code which
computes a gaussian quadrature rule for a weight function rho(x)
based on the golub-welsch procedure that only requires knowledge
of the moments of rho(x).
quadrature_rules,
a dataset directory which
contains sets of files that define quadrature
rules over various 1d intervals or multidimensional hypercubes.
quad_rule_fast,
a MATLAB code which
defines efficient versions of a few 1d quadrature rules.
test_int,
a MATLAB code which
defines test integrands for 1d quadrature rules.
toms655,
a MATLAB code which
computes the weights for interpolatory quadrature rule;
this library is commonly called iqpack;
this is a MATLAB version of acm toms algorithm 655.
truncated_normal_rule,
a MATLAB code which
computes a quadrature rule for a normal probability density function (pdf),
also called a gaussian distribution, that has been
truncated to [a,+oo), (-oo,b] or [a,b].
Source Code:
-
cdgqf.m
computes a Gauss quadrature formula with default A, B and simple knots.
-
cgqf.m
computes knots and weights of a Gauss quadrature formula.
-
chebyshev_set.m,
sets abscissas and weights for Chebyshev quadrature.
-
chebyshev1_compute.m
computes a Gauss-Chebyshev type 1 quadrature rule.
-
chebyshev1_integral.m
evaluates a monomial Chebyshev type 1 integral.
-
chebyshev1_set.m,
sets a Chebyshev Type 1 rule.
-
chebyshev2_compute.m
computes a Gauss-Chebyshev type 2 quadrature rule.
-
chebyshev2_integral.m
evaluates a monomial Chebyshev type 2 integral.
-
chebyshev2_set.m,
sets a Chebyshev Type 2 rule.
-
chebyshev3_compute.m,
computes a Gauss-Chebyshev type 3 quadrature rule.
-
chebyshev3_integral.m
evaluates a monomial Chebyshev type 3 integral.
-
chebyshev3_set.m,
sets a Chebyshev Type 3 rule.
-
class_matrix.m
computes the Jacobi matrix for a quadrature rule.
-
clenshaw_curtis_compute.m,
computes a Clenshaw-Curtis quadrature rule.
-
clenshaw_curtis_set.m,
sets up Clenshaw-Curtis quadrature.
-
fejer1_compute.m,
computes a Fejer type 1 quadrature rule.
-
fejer1_set.m,
sets a Fejer type 1 quadrature rule.
-
fejer2_compute.m,
computes a Fejer type 2 quadrature rule.
-
fejer2_set.m,
sets a Fejer type 2 quadrature rule.
-
gegenbauer_integral.m
evaluates the integral of a monomial with Gegenbauer weight.
-
gegenbauer_ek_compute.m
computes a Gauss-Gegenbauer quadrature rule.
-
gegenbauer_ss_compute.m
computes a Gauss-Gegenbauer quadrature rule.
-
gegenbauer_ss_recur.m
finds the value and derivative of a Gegenbauer polynomial.
-
gegenbauer_ss_root.m
improves an approximate root of a Gegenbauer polynomial.
-
gen_hermite_dr_compute.m,
computes a generalized Gauss-Hermite quadrature rule.
-
gen_hermite_ek_compute.m,
computes a generalized Gauss-Hermite quadrature rule.
-
gen_hermite_integral.m,
evaluates a monomial generalized Hermite integral.
-
gen_laguerre_ek_compute.m,
computes a generalized Gauss-Laguerre quadrature rule.
-
gen_laguerre_integral.m,
evaluates a monomial generalized Laguerre integral.
-
gen_laguerre_ss_compute.m,
computes a generalized Gauss-Laguerre quadrature rule.
-
gen_laguerre_ss_recur.m,
finds the value and derivative of a generalized Laguerre polynomial.
-
gen_laguerre_ss_root.m,
improves an approximate root of a generalized Laguerre polynomial.
-
hermite_ek_compute.m,
computes a Gauss-Hermite quadrature rule.
-
hermite_gk16_set.m,
sets a Genz-Keister Hermite quadrature rule.
-
hermite_gk18_set.m,
sets a Genz-Keister Hermite quadrature rule.
-
hermite_gk22_set.m,
sets a Genz-Keister Hermite quadrature rule.
-
hermite_gk24_set.m,
sets a Genz-Keister Hermite quadrature rule.
-
hermite_integral.m,
returns the value of a Hermite integral.
-
hermite_probabilist_set.m,
sets abscissas and weights for Hermite probabilist quadrature.
-
hermite_set.m,
sets abscissas and weights for Hermite quadrature
with density exp(-x^2).
-
hermite_1_set.m,
sets abscissas and weights for Hermite quadrature
with density 1.
-
hermite_ss_compute.m,
computes a Gauss-Hermite quadrature rule.
-
hermite_ss_recur.m,
finds the value and derivative of a Hermite polynomial.
-
hermite_ss_root.m,
improves an approximate root of a Hermite polynomial.
-
imtqlx.m
diagonalizes a symmetric tridiagonal matrix.
-
jacobi_ek_compute.m,
computes a Gauss-Jacobi quadrature rule.
-
jacobi_integral.m,
evaluates the integral of a monomial with Jacobi weight.
-
jacobi_ss_compute.m,
computes a Gauss-Jacobi quadrature rule.
-
jacobi_ss_recur.m,
finds the value and derivative of a Jacobi polynomial.
-
jacobi_ss_root.m,
improves an approximate root of a Jacobi polynomial.
-
kronrod_set.m,
sets abscissas and weights for Gauss-Kronrod quadrature.
-
laguerre_ek_compute.m,
computes a Gauss-Laguerre quadrature rule.
-
laguerre_integral.m,
evaluates a monomial Laguerre integral.
-
laguerre_set.m,
sets abscissas and weights for Laguerre quadrature
with density rho(x)=exp(-x).
-
laguerre_1_set.m,
sets abscissas and weights for Laguerre quadrature
with density rho(x)=1.
-
laguerre_ss_compute.m,
computes a Gauss-Laguerre quadrature rule.
-
laguerre_ss_recur.m,
finds the value and derivative of a Laguerre polynomial.
-
laguerre_ss_root.m,
improves an approximate root of a Laguerre polynomial.
-
laguerre_sum.m,
carries out Laguerre quadrature over [ A, +oo ).
-
legendre_dr_compute.m,
Gauss-Legendre quadrature by Davis-Rabinowitz method.
-
legendre_ek_compute.m,
Gauss-Legendre quadrature by Elhay-Kautsky method.
-
legendre_integral.m,
evaluates a monomial Legendre integral.
-
legendre_ss_compute.m,
Gauss-Legendre quadrature by Stroud-Secrest method.
-
legendre_ss_recur.m,
finds the value and derivative of a Legendre polynomial.
-
legendre_ss_root.m,
improves an approximate root of a Legendre polynomial.
-
legendre_set.m,
sets abscissas and weights for Gauss-Legendre quadrature.
-
lobatto_compute.m,
computes abscissas and weights for Lobatto quadrature.
-
lobatto_set.m,
sets abscissas and weights for Lobatto quadrature.
-
nc_compute_weights.m,
computes weights for a Newton-Cotes quadrature rule.
-
ncc_compute.m,
computes a Newton-Cotes Closed quadrature rule.
-
ncc_set.m,
sets abscissas and weights for Newton-Cotes Closed quadrature.
-
nco_compute.m,
computes a Newton-Cotes Open quadrature rule.
-
nco_set.m,
sets abscissas and weights for Newton-Cotes Open quadrature.
-
ncoh_compute.m,
computes a Newton-Cotes "open half" quadrature rule.
-
ncoh_compute_set.m
-
ncoh_set.m,
sets abscissas and weights for Newton-Cotes "open-half" quadrature.
-
parchk.m
checks parameters ALPHA and BETA for classical weight functions.
-
patterson_set.m,
sets abscissas and weights for Patterson quadrature.
-
psi_values.m,
returns selected values of the psi function.
-
r8_factorial2.m,
evaluates the double factorial function.
-
r8_hyper_2f1.m,
evaluates the hypergeometric function F(A,B,C,X).
-
r8_psi.m,
evaluates the Psi function.
-
r8_sign.m
returns the sign of an R8.
-
r8vec_reverse.m,
reverses the elements of an R8VEC.
-
radau_compute.m,
computes abscissas and weights for Radau quadrature.
-
radau_set.m,
sets abscissas and weights for Radau quadrature.
-
scqf.m
scales a quadrature formula to a nonstandard interval.
-
sgqf.m
computes knots and weights of a Gauss Quadrature formula.
Last revised on 02 March 2019.