# LINE_NCC_RULE Newton Cotes Closed (NCC) Quadrature Rules for the Interval

LINE_NCC_RULE is a C library which computes a Newton Cotes Closed (NCC) quadrature rule, using equally spaced points over the interior of a line segment in 1D.

### Languages:

LINE_NCC_RULE is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

### Related Data and Programs:

CCN_RULE, a C program which defines one of a set of nested Clenshaw Curtis quadrature rules of

CLENSHAW_CURTIS_RULE, a C program which defines a Clenshaw Curtis quadrature rule.

LEGENDRE_RULE, a C program which computes a 1D Gauss-Legendre quadrature rule.

LINE_FEKETE_RULE, a C library which approximates the location of Fekete points in an interval [A,B]. A family of sets of Fekete points, indexed by size N, represents an excellent choice for defining a polynomial interpolant.

LINE_FELIPPA_RULE, a C library which returns the points and weights of a Felippa quadrature rule over the interior of a line segment in 1D.

LINE_GRID, a C library which computes a grid of points over the interior of a line segment in 1D.

LINE_INTEGRALS, a C library which returns the exact value of the integral of any monomial over the length of the unit line in 1D.

LINE_MONTE_CARLO, a C library 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, a C library which defines a Newton Cotes Open (NCO) rule using equally spaced points over the interior of a line segment in 1D.

TRIANGLE_FEKETE_RULE, a C library which defines Fekete rules for interpolation or quadrature over the interior of a triangle in 2D.

TRIANGLE_FELIPPA_RULE, a C library which returns Felippa's quadratures rules for approximating integrals over the interior of a triangle in 2D.

WEDGE_FELIPPA_RULE, a C library which returns quadratures rules for approximating integrals over the interior of the unit wedge in 3D.

### Reference:

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

### List of Routines:

• LINE_NCC_RULE computes a Newton-Cotes Closed (NCC) quadrature rule.
• R8VEC_LINSPACE creates a vector of linearly spaced values.
• TIMESTAMP prints the current YMDHMS date as a time stamp.

You can go up one level to the C source codes.

Last revised on 10 April 2014.