# Mathspp Blog

#### mathematics — Mathematics

##### Problem #066 – regex crossword

Can you solve this crossword where all hints are regular expressions?

##### Animating a rotating spiral

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

##### Problem #065 – clock synchronisation

When will these two clocks synchronise again?

##### Base conversion in Python

This article shows how to do base conversions in Python with the built-in int, how to write integer literals in other bases, and how to do base conversions in general.

##### max is broken

The built-in function max in Python is broken and this article explains why, drawing parallels with other programming and mathematics concepts.

##### Problem #064 – infinite mathematicians with hats

How can an infinite number of mathematicians figure out their own hat colours?

##### divmod for unit conversions

This article shows how to use the Python built-in divmod for unit conversions.

##### TIL #085 – negative zero -0.0

Today I learned that Python and other programming languages have negative zero, -0.0.

##### (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.

##### Your first recurrent neural network (RNN)

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

##### Finding similar photos

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.

##### Problem #063 – arbitrarily many primes in arbitrarily big intervals

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

##### TIL #053 – precision of Python floats

Today I learned what precision Python floats have.

##### TIL #051 – Heron's formula

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

##### Problem #062 – sliding coins

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

##### Problem #061 – flower garden

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

##### Problem #060 – realtor commissions

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

##### Problem #059 – marching pegs

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