line_ncc_rule


line_ncc_rule, a Python code which computes a Closed Newton Cotes quadrature rule to approximate an integral over the length of a line segment in 1D.

Licensing:

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

Languages:

line_ncc_rule is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

alpert_rule, a Python code which sets up an Alpert quadrature rule for functions which are regular, log(x) singular, or 1/sqrt(x) singular.

annulus_rule, a Python code which computes a quadrature rule for estimating integrals of a function over the interior of a circular annulus in 2D.

disk_rule, a Python code which computes quadrature rules over the interior of the general disk in 2D;

disk01_rule, a Python code which computes quadrature rules over the interior of the unit disk in 2D, with radius 1 and center (0,0).

quadrule, a Python code which defines quadrature rules for approximating an integral over a 1D domain.

simplex_gm_rule, a Python code which defines Grundmann-Moeller quadrature rules over the interior of a simplex in M dimensions.

square_minimal_rule, a Python code which returns almost minimal quadrature rules, with exactness up to total degree 55, over the interior of the symmetric square in 2D, by Mattia Festa and Alvise Sommariva.

triangle_twb_rule, a Python code which generates the points and weights of quadrature rules over the interior of a triangle in 2D, determined by Taylor, Wingate, and Bos.

truncated_normal_rule, a Python 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].

Reference:

  1. Philip Davis, Philip Rabinowitz,
    Methods of Numerical Integration,
    Second Edition,
    Dover, 2007,
    ISBN: 0486453391,
    LC: QA299.3.D28.

Source Code:


Last revised on 14 July 2021.