Simulations

Math, physics, and code to set our imaginations free.

Three-Body Problem

The three-body problem has been a challenge in classical mechanics for hundreds of years. It only has an analytical solution in a few special cases. Even now, mathematicians are still discovering these special cases. This is my simulation dedicated to the popular sci-fi, the Three Body Problem trilogy by Liu Cixin. If you haven't read it yet, I strongly recommend it!

Space Colonization: Fractal Tree

Fractals are infinitely complex patterns that are self-similar across different scales. Driven by recursion, fractals are images of dynamic systems, the pictures of Chaos. There are many fractal structures in nature. In this sketch, you will see how a tree grows branches using a strategy called Space Colonization to reach for "resources" represented by yellow dots. For more details, check out my Medium article on fractals

Space Colonization: 3D

This is a 3D version of space colonization where only orthogonal directions are allowed. I find it quite satisfying to look at orthogonal lines growing in 3D with a moving camera. The resulting structure is mesmerizing. The last section of my Medium article here describes how it works.

Galton Board

The bean machine, also known as the Galton Board or quincunx, is a device invented by Sir Francis Galton to demonstrate the central limit theorem, in particular that with sufficient sample size the binomial distribution approximates a normal distribution.