Mathematica notebook for the post on the Perceptron.