Mathspp Blog

A blog dedicated to mathematics and programming!

This blog has a really interesting assortment of articles on mathematics and programming. You can use the tags to your right to find topics that interest you, or you may want to have a look at

You should also subscribe to the blog newsletter.

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

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

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

In this introductory tutorial, you will build a recurrent neural network (RNN) with PyTorch.

Go through the complete code for a Python project that consists in finding similar photographs in a folder. This tutorial will make use of classical techniques and is suitable for beginners.

Can you prove that there are arbitrarily many primes in arbitrarily big intervals?

Today I learned what precision Python floats have.

Today I (re)learned Heron's formula to compute the area of a triangle from its three sides.

Can you align all of the coins on the right edge of the board?

Three mathematicians discuss a beautiful flower garden and the coloured flowers within.

Two realtors discuss who's netting the award for highest average commission, but it isn't clear who the winner is...

How can you swap the coloured pegs if they can only march forward?

Please help me identify these 100 light bulbs by turning ON and OFF their switches.

We discuss the look-and-say sequence, its behaviour, variations of it, and a Python implementation.

Today I learned that the length of the terms of the “look-and-say” sequence has a well-defined growth rate.

Can you find the centre of the circle with just five lines?

Today I learned about multi-channel transposed convolutions.

Today I learned about the transposed convolution transformation in CNNs.

How many matches does it take to find the winner of a tennis tournament?

Today I learned about t-SNE for dimensionality reduction.