Hello.
I am surprised that none of you mentioned that some of those functions, at least the haversine function saves precision. -Which is important if you do your calculations with something that doesn't have the long doubles and such.
I code some in AppleScript, and I love the haversine function since I have a precision of only 12 digits or so. Have a look at http://en.wikipedia.org/wiki/Haversine.