# Multi-pendulum Harmonograph simulator using numpy and matplotlib

This is a simple harmonograph simulator to generate random-ish harmonographs. It asks for the number of pendulums, and exits if … More

# A Neural Network in Python, Part 2: activation functions, bias, SGD, etc.

This is Part 2 of A Neural Network in Python, which was a very simple neural network to learn the … More

# A Neural Network in Python, Part 1: sigmoid function, gradient descent & backpropagation

In this article, I’ll show you a toy example to learn the XOR logical function. My objective is to make it … More

# Have we already seen this number? (deja vu again)

I had a phone interview for a Python job the other day. It started out really well, he was very … More

# Hello World 2, in Python 3

Hello World is the famous minimal introductory program for many programming languages. But as soon as it’s served its purpose, it’s discarded … More

# Spectral Harmonographs

This Python + Pygame program draws the trace of 4 decaying sine waves, 2 per axis, with rainbow colours. It … More

# Number guessing game

The number guessing game incorporates several simple but important elements of elementary programming and is a good candidate for an … More

# A Graphical Dice Simulator

This PyGame program simulates the roll of a die (or dice if you prefer). It’s a fairly simple, straightforward thing … More

# Extensible Harmonograph

Often seen in science museums, the harmonograph is a device that combines wave motions (e.g. from some pendulums) to move … More

# Binary Search

Binary Search is one of the most fundamental computer algorithms. Given an ordered list of some data (names, numbers, …) … More

# Random Walk

A colourful random walk. The basic idea is very simple: choose a random heading in the range 0:360 degrees. Step … More