For what it's worth, there are also algorithms that aren't too hard for calculating sine, cosine, tangent, logarithms of various bases, and so on, but I don't feel like typing that much.
http://www.potentialeight.com
Forum Rules