The Spirograph

I became a kid again and purchased a Spirograph set. The Spirograph is a mathematical toy, which you can use for drawing nice figures. In the simplest case it exists of a fixed circle, used as a template, and a smaller rolling circle with holes. The result of my experiment is at the end of this post.
Thereafter, I turned my attention to mathematical generation of the Spirograph figures, and to my surprise I was able to find a number of good resources on the net.
The parametric equations for a Spirograph are:
x(t)=(R+r)cos(t) + p*cos((R+r)t/r)
y(t)=(R+r)sin(t) + p*sin((R+r)t/r)

More explanation here:

A digital spirograph can be created using, for example, the following equations:
with HSB Grapher.

An applet, and some data to play with it can be found here.
However, what I found more useful and interesting is this page: It provides a Spirograph compiler (an awk script). This awk script takes a Spirograph specification and generates a gnuplot script to create the Spirograph. Go try it – its very interesting. If you are on windows, read these to help you get started on awk and gnuplot.



Jokes 4 Folks I

Have nothing substantial to say today, will share a joke:

Fed up with his nephew boasting about how good he was at flight-simulator games, a colleague, who is a pilot, decided to give him a taste of the real thing and took him for a ride in his 2-seater plane.
At about 60 meters over the countryside, my friend looked across to his nephew and asked what he thought so far. “Wow”, replied the boy, “nice graphics!”