# Mathspp Blog

### A blog dedicated to mathematics and programming!

As of now, my blog is being migrated here. You can find all the old content over here.

40
##### P020 - Make 24 with 3 3 8 8

Today we are visiting a specific instance of a well-known basic mathematics game, the 24 Game. The "24 Game" is usually played with younger students because it helps them develop skills related to the basic arithmetic operations.

48
##### Let's build a simple interpreter for APL - part 2

Today is the day! Today is the day we take our APL programs and interpret them, so that something like ÷ 1 2 3 -⍨ 1.1 2.2 3.3 can output 10 5 3.33333333.

81
##### P019 - Fold the alphabet

Take out a piece of paper and a pencil, I am going to ask you to write some letters in your sheet of paper and then I am going to challenge you to fold the sheet of paper... with a twist!

158
##### P018 - circle of hats

$$n$$ mathematicians with numbered party hats gather around in a circle... It is a matter of life or death!

159
##### Let's build a simple interpreter for APL - part 1

Let's build a simple APL interpreter! APL is an array-oriented programming language I picked up recently. The ease with which I can write code related to mathematics, its strange built-ins (which look like ⍴, ⍨, ⍒ or ⍣) and the fact that it is executed from right to left make it a fresh learning experience!

143
##### Py-don't disrespect the Zen of Python

Py-don'ts are anti-tips for writing good Python code. Sometimes learning what is good isn't enough. You have to compare it with what is bad as well!

134
##### The birthday bet

In high school I had a colleague that had his birthday on the same day as I did. What a coincidence, right? Right..?

129
##### P007 - binary multiples

Is it true that every integer you can think of has a multiple written out only with $$0$$s and $$1$$s?

145
##### P001 - a dancing triangle

This post's format will be a bit different from the usual and the first of a series of posts of this type. In this post, I will state a problem and then present my solution.

113
##### On recursive functions and Kleene's approach

In this post I just ramble a bit through some mathematician's definition of what a recursive function is...

85
##### Fractals and the filled Julia set

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

131
##### Creating a programming language from scratch

This blog post tells the short story of how I wrote a simple interpreter for a toy programming language!

150
##### 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?

68
##### Pigeon Pooping Simulator

This blog post has a single purpose, which is to show you the weird game I made, inspired by Flappy Bird and my crazy English teacher.

72
##### Minesweeper remake

Minesweeper has to be one of the most well-known minigames of all time, no? I spent my fair share of Sunday mornings playing minesweeper in my Windows XP computer...

129