atan2 help please

Kevin Stallibrass kevin at stallibrass.com
Fri Nov 6 09:26:12 EST 2009


Hi, 

I'm trying to convert an Excel formula to work in runrev but I have an issue
with atan2

The excel formula is =DEGREES(ATAN2(5,10) which returns 63.43494882 (seems
to be correct)

In Rev, I'm using answer (atan2(5,10)*180/pi which returns 26.565051

I've tried removing the radians to degrees function { =(ATAN2(5,10)  &
answer  atan2(5,10) but still have a big difference.

When both arguments are the same (5,5) or 10,10), the result is same in both
programs.

 

So, is ATAN2 in Excel different to atan2 in RunRev?

If so, how do I go about scripting the Excel formula?

 

 

Kevin Stallibrass

 

 




More information about the use-livecode mailing list