Tag: random

harmonograph
Posted in Harmonograph Pyplot

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… read more Multi-pendulum Harmonograph simulator using numpy and matplotlib

Posted in Advanced Artificial Intelligence

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… read more A Neural Network in Python, Part 2: activation functions, bias, SGD, etc.

Posted in Advanced Artificial Intelligence

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… read more A Neural Network in Python, Part 1: sigmoid function, gradient descent & backpropagation

Posted in Beginner Numbers

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… read more Have we already seen this number? (deja vu again)

hello world
Posted in Beginner

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… read more Hello World 2, in Python 3

Posted in Harmonograph Intermediate

Spectral Harmonographs

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

Posted in Basic Numbers

Number guessing game

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

Posted in Beginner Games

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… read more A Graphical Dice Simulator

Harmonograph
Posted in Harmonograph Intermediate

Extensible Harmonograph

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

Posted in Basic Numbers

Binary Search

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

Posted in Basic Turtle

Random Walk

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