disk_grid, an Octave code which generates a grid of points over the interior of a disk in 2D.
The library allows the user to define an arbitrary disk by choosing its radius and center. The user also chooses N, the number of subintervals into which the horizontal radius line will be subdivided. It then returns the gridpoints defined by that choice.
Another function allows the user to specify that N points on a Fibonacci spiral are to be placed within the disk.
The test program creates input files to GNUPLOT which will create graphic images of the grids.
The computer code and data files described and made available on this web page are distributed under the MIT license
disk_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.
disk_integrals, an Octave code which returns the exact value of the integral of any monomial over the interior of a disk of radius R centered at the origin.
matlab_grid, an Octave code which generates a regular grid of points inside a variety of regions in one, two, three or many dimensions.