NumberSpiral. Primal number check in one line of Perl. Author: Neil KandalgaonkarFormatting: Laurent CAPRANI Look here for a nicer version of this page that Neil made.
Contents Primality regex. Aliasing Artifacts. One day, while playing with a program to render Voronoi diagrams, I accidentally requested the Voronoi diagram of a black point and a white point, both at the origin.
Imagine my surprise when my program produced the image above. Eventually I realized what was happening. For every point in the plane, my program was computing the distance from that point to one of the generators at the origin. This number was computed inside the FPU as an 80-bit floating point number, and then rounded to a 64-bit double precision number in order to store it in main memory. Wavelets for Computer Graphics. Overview Wavelets are a mathematical tool for hierarchically decomposing functions.
They allow any function to be described in terms of a coarse overall shape, plus details that range from broad to narrow. As the figures below illustrate, wavelets can be applied to a wide variety of objects used in graphics, including images, curves, surfaces, and the solutions to lighting simulations. Publications Although a great deal has been written about wavelets, most of the literature uses terminology from signal processing and pure mathematics.