**line_ncc_rule_test**,
a MATLAB program which
calls line_ncc_rule() to compute a Newton Cotes (Closed) quadrature rule
over the length of a line segment in 2D.

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

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

- line_ncc_rule_test.m, calls all the tests.
- line_ncc_rule_test.sh, runs all the tests.
- line_ncc_rule_test.txt, the output file.

- line_ncc_rule_test01.m, computes and prints some rules.
- line_ncc_rule_test02.m, uses the rules to integrate a function.