Page 1 of 1
Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:17 am
by urbaud
Does anyone know how to write this formula in Rev code? The formula is part of other formulas to figure "Great Circle Distances". Formula: atn(x/sqr(-x * x +1))
I believe atn means arc tangent and sqr would be square root.
Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:43 am
by shaosean
Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 6:01 am
by urbaud
Shao,
Thanks for your help with the formula. I'm trying to convert VBA code that calculates Great Circle distances. I'm having trouble with another formula, so I hope what you've suggested will work. Thanks again.
Dan
Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 1:37 pm
by Klaus
Hi all,
I was (and still am) very weak in maths

, but the original function only has ONE value inside of the parenthesis so I think it should be:
atan(x/sqrt(-x * x +1))
Best from germany
Klaus
Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:14 pm
by shaosean
Actually, if you read the description for
atan2 you will see that it does the division of the two numbers and respects the signs..
Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:21 pm
by Klaus
OK, as I wrote I have even no idea what atan or atan2 means, so sorry if I am wrong.
Sorry for the confusion

Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:31 pm
by shaosean
I'll spank you later

Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:32 pm
by Klaus
P.S.
Looking for testers?
Here is one, just drop a line

Re: Converting a formula to Rev
Posted: Tue Nov 23, 2010 2:40 pm
by shaosean
Apply through the support link (just create a new ticket)