sphere_triangle_quad


sphere_triangle_quad, an Octave code which estimates the integral of a scalar function F(X,Y,Z) over a spherical triangle on the unit sphere.

Three methods of estimation are very crude and cannot be improved:

One method of estimation uses random sampling, the Monte Carlo method, whose accuracy can be improved by increasing the number of sample points.

Another method is based on the centroid rule, but allows the user to decompose the original spherical triangle into collection of smaller triangles. The accuracy of the estimate should improve as the size of these triangles decreases.

Licensing:

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

Languages:

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

Related Data and Programs:

random_data, an Octave code which generates sample points for various probability distributions, spatial dimensions, and geometries;

sphere_grid, an Octave code which provides a number of ways of generating grids of points, or of points and lines, or of points and lines and faces, over the unit sphere.

sphere_quad, an Octave code which approximates an integral over the surface of the unit sphere by applying a triangulation to the surface;

sphere_triangle_monte_carlo, an Octave code which estimates the integral of a function over a spherical triangle using the monte carlo method.

sphere_triangle_quad_test

stroud, an Octave code which approximates the integral of a function on the surface or in the interior of a variety of geometric shapes.

Reference:

Source Code:


Last revised on 10 May 2023.