Topic: atan2 function

Hi Ivan,

The atan2 function is useful in many applications involving direction angles.

http://en.wikipedia.org/wiki/Atan2#Definition

Would you please consider adding this function in the future?


Best regards.

benice

Re: atan2 function

I will consider adding it. However you can already create it yourself as a custom function from one of the definitions at Wikipedia:

atan2(y,x) = 2atan(y/(sqrt(x^2+y^2)+x))
atan2(y,x) = ifseq(x>0, atan(y/x), y>=0 and x<0, atan(y/x)+pi, y<0 and x<0, atan(y/x)-pi, y>0 and x=0, pi/2, y<0 and x=0, -pi/2)

Re: atan2 function

Hi Ivan,

Thank you very much and best wishes to you.

benice