line_nco_rule


line_nco_rule, an Octave code which computes a Newton Cotes Open (NCO) quadrature rule using equally spaced points over the interior 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_nco_rule is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version.

Related Data and Programs:

line_nco_rule_test

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.

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

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

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

line_ncc_rule, a MATLAB code which computes a Newton Cotes Closed (NCC) quadrature rule using equally spaced points 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.