Mathematical Sandpiles

By: perfectionatic

Re-posted from: http://perfectionatic.org/?p=320

I can across an exotic number system known as a sandpile on Numberphile video.

Exploiting Julia fantastic type system and very cool index handling, I put implements that sandpile addition operator demonstrated in the Numberphile video.

The notebook can be found here.