line_integrals_test, a MATLAB code which calls line_integrals(), which returns the exact value of the integral of any monomial along the length of the unit monomial in 1D.
The computer code and data files described and made available on this web page are distributed under the MIT license
line_integrals, a MATLAB code which returns the exact value of the integral of any monomial over the length of the unit line segment in 1D.