Converting a formula to Rev
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Converting a formula to Rev
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.
I believe atn means arc tangent and sqr would be square root.
urbaud
Re: Converting a formula to Rev
Code: Select all
atan2(x, sqrt(-x * x + 1))
Re: Converting a formula to Rev
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
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
urbaud
Re: Converting a formula to Rev
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
I was (and still am) very weak in maths

atan(x/sqrt(-x * x +1))
Best from germany
Klaus
Re: Converting a formula to Rev
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
OK, as I wrote I have even no idea what atan or atan2 means, so sorry if I am wrong.
Sorry for the confusion
Sorry for the confusion

Re: Converting a formula to Rev
I'll spank you later 

Re: Converting a formula to Rev



P.S.
Looking for testers?
Here is one, just drop a line

Re: Converting a formula to Rev
Apply through the support link (just create a new ticket)