atan2 help please

2 messages Options
Embed this post
Permalink
kevin-32

atan2 help please

Reply Threaded More More options
Print post
Permalink
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

 

 

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
kevin-32

re: atan2 help please

Reply Threaded More More options
Print post
Permalink
OOPS!

It always helps to send a mail to you guys, I then think of something else
and find my own solution..

 

Turns out that the arguments are reversed between ATAN2 in Excel and atan2
in RunRev

Sorry to have wasted your  time

 

Kevin Stallibrass

 

 

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution