here is a link to a website i found a while ago, that helps with a lot of the math. the site was written for a basic stamp, but it all works out the same.
http://www.emesystems.com/BS2math3.htm#arcCos
and here has a bunch of other math functions for the stamp along with explaining some of the other functions that can be done with it..
http://www.emesystems.com/BS2index.htm
Bookmarks