http://ptolemy.eecs.berkeley.edu/other/tmath/tmath0.2/README.html