Hi, I’m Logan (Chao) Yang, a machine learning engineer and creative coder.

My main interests are machine learning, physics simulation,
math animation and music production.
I share my sketches, simulations, blog posts and videos here.

Connect with me on social media

twitter linkedin

Simulations

Three Body Problem

The three-body problem has been a challenge in classical mechanics for hundreds of years.
It only has 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!

View »

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 here.

View »

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.

View »

Rejection Sampling: A Monte Carlo Method

Ever wondered how to simulate an arbitrary probability distribution using uniform random numbers?
You can view it in action here. For a description of how it works, check out my Medium article.

View »

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.

View »