Fork of http://code.google.com/p/dmath/