insideoutside
Couldn't start the 3D scene.

Gauss Circle Problem: Lattice Point Count, Error Term and Sums of Two Squares

Count the integer lattice points inside a circle and compare with its area. Grow the radius, shift the centre, and watch the count N(r) step up at every sum of two squares while the error N(r) minus pi r squared stays far smaller than the circumference. A Blender-built board and ring with instanced lattice points, and numerical checks including Jacobi sum of two squares formula and brute-force counts.

Made with 🟠 Blender · Three.js