**tetrahedron_ncc_rule_test**,
a MATLAB code which
calls tetrahedron_ncc_rule(), which
defines the weights and abscisass for a sequence of
7 Newton-Cotes closed quadrature rules
over the interior of a tetrahedron in 3D.

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

tetrahedron_ncc_rule, a MATLAB code which defines Newton-Cotes Closed (NCC) quadrature rules over the interior of a tetrahedron in 3D.

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

- tetrahedron_ncc_test01.m, tests TETRAHEDRON_NCC_RULE_NUM, TETRAHEDRON_NCC_DEGREE, and TETRAHEDRON_NCC_ORDER_NUM.
- tetrahedron_ncc_test02.m, tests TETRAHEDRON_NCC_RULE by summing the weights.
- tetrahedron_ncc_test03.m, tests TETRAHEDRON_NCC_RULE by summing the barycentric coordinates.
- tetrahedron_ncc_test04.m, tests TETRAHEDRON_NCC_ORDER by integrating monomials in the unit tetrahedron.
- tetrahedron_ncc_test05.m, tests REFERENCE_TO_PHYSICAL_T4 by transforming an NCC rule from the unit tetrahedron to another tetrahedron.
- tetrahedron_ncc_test06.m, tests TETRAHEDRON_NCC_RULE by printing out one rule.