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.

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.

Today I learned about Simpson's paradox in statistics.

25 horses racing, and you have to find out the fastest ones!

The Zen of Python says “there should be one -- and preferably only one -- obvious way to do it”, but what if there's a dozen obvious ways to do it?

Join me as I create a simulation that tries to test an Elo-based rating system for quizzes.

Can you show that perfect compression is impossible?

Today I learned about Spouge's formula to approximate the factorial.