Type up equations from Randlov's thesis/1998 paper.

There are a bunch of errors still. The equations are used to define a
PyBrains Environment.