line_ncc_rule


line_ncc_rule, an Octave code which computes a Newton Cotes Closed (NCC) 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 an Octave version and a Python version.

Related Data and Programs:

line_ncc_rule_test

line_felippa_rule, an Octave code which returns the points and weights of a Felippa quadrature rule over the interior of a line segment in 1D.

line_grid, an Octave code which computes a grid of points over the interior of a line segment in 1D.

line_integrals, an Octave code which returns the exact value of the integral of any monomial over the length of the unit line in 1D.

line_monte_carlo, an Octave code which applies a Monte Carlo method to estimate the integral of a function over the length of the unit line in 1D;

line_nco_rule, an Octave code which defines Newton-Cotes Open (NCO) quadrature rules over the interior of a line segment in 1D.

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 25 October 2022.