Mathspp Blog

364 401,576 33,251
articles words lines of code
Animating a rotating spiral

With a couple of loops and a bit of maths you can create a rotating spiral.

ASCII rain scroll art

Using ASCII characters we can create a simple rain animation in the terminal.

(More) Animations from first principles

Create a zooming animation from first principles in Python. In 5 minutes. Kind of.

Animations from first principles

Create animations from first principles and morph between different figures with Python. In 5 minutes. Kind of.

TIL #080 – how to draw a Bézier curve

Today I learned how to draw a Bézier curve with the De Casteljau's algorithm.

TIL #032 – t-SNE for dimensionality reduction

Today I learned about t-SNE for dimensionality reduction.

Studying the "24 Game"

The 24 Game is a well-known maths game that is played with kids in school to help them master the four basic arithmetic operations. In this blog post we will study the game in depth.

Solving mazes with programming

I have always loved solving mazes... so naturally I had to write a program to solve mazes for me!

Solving diophantine equations with random walks

Here's how I like to solve my equations: just walk around randomly until I trip over a solution!

Random walk simulations in 2D

Think of a drunk man that continuously tumbles left and right, back and forth, with no final destination.

Fractals and the filled Julia set

The filled Julia set is a really cool fractal that kind of resembles the Mandelbrot set!

Fractals and the Mandelbrot set

I have always liked the concept of fractal. They are very beautiful, they have a notion of infinity embedded in them, and they make no sense (seriously though, self-similarity?). How could they not be loved?