This program was written as an exercise to demonstrate my programming skills for a job with D.E. Shaw, which I ended up not taking anyway.
So it was something of a waste of time. But at least it gives me something to show off onmy web-site.
The program takes an input like:
and then gives you back results like:
What merry fun.
The include file contains most of the salient explanations, with some supporting material contained in the source file. In the unlikely event that you are overwhelmed by an enthusiasm to play further with this masterpiece, you could always download the ZIP archive.