Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inverse trigonometric ratios (arcsin, arccos, arctan, etc.)

Status
Not open for further replies.

darklich14

Programmer
Feb 14, 2001
3
US
I am calculating the distance in nautical miles between two lat and lon coordinates on the globe. The formula calls for the arccos of a bunch of things and I am unable to find an arccos function in the math library. Does anyone know of a way around this or if there is an arccos function but I'm looking in the wrong place? I'm using version 8.5 to narrow things down for anyone who thinks they might have an answer.
Thanks in advance!
-darklich14
 
From memory, all the arccos, arcsin, etc functions can be calculated from arctan. From the Vb help files...
Arcsin(X) = Atn(X / Sqr(-X * X + 1)) and
Arccos(X) = Atn(-X / Sqr(-X * X + 1)) + 2 * Atn(1)

And atn is available in Cr8.5 Editor and Publisher of Crystal Clear
 
There is a UFL available on the crystal decisions website that has several trigonometric functions, I am not sure is the ones you mentioned are included. You might check this out though. Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top