ball_grid


ball_grid, an Octave code which generates a grid of points over the interior of an arbitrary ball in 3D.

The library allows the user to define an arbitrary ball by choosing its radius and center. The user also choose N, the number of subintervals into which a horizontal radius line will be subdivided. It then returns the gridpoints defined by that choice.

Licensing:

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

Languages:

ball_grid 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:

ball_grid_test

ball_integrals, an Octave code which defines test functions for integration over the interior of the unit ball in 3D.

ball_monte_carlo, an Octave code which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit ball;

circle_arc_grid, an Octave code which computes points equally spaced along a circular arc;

line_grid, an Octave code which computes a grid of points over the interior of a line segment in 1D.

simplex_grid, an Octave code which generates a regular grid of points over the interior of an arbitrary simplex in M dimensions.

Source Code:


Last revised on 10 November 2022.