line_integrals


line_integrals, a Python code which returns the exact value of the integral of any monomial along the length of the unit monomial in 1D.

The length of the unit line in 1D is defined by

        0 <= x <= 1
      

The integrands are all of the form

        f(x) = x^e
      
where the exponent is a nonnegative integer.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

line_integrals is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

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

line_monte_carlo, a python code which applies a monte carlo method to estimate the integral of a function over the length of the unit line segment in 1d;

python_integrals, a Python code which returns the exact value of the integral of any monomial over the surface or interior of some geometric object, including a line, quadrilateral, box, circle, disk, sphere, ball and others.

Source Code:


Last revised on 27 January 2020.