Isn't it

atan2 =: {:"1@:*.@:(j./"1)

?
   atan2 1 1
0.785398
   atan2 _1 _1
_2.35619
   atan2 _1 0
3.14159

Henry Rich

On 3/11/2014 7:05 PM, EelVex wrote:
Is there an atan2 anywhere in some library?

If not maybe we could add it?

A simple start could be:
atan2 =: +:@(_3&o.)@([ %~ ] -~ +/&.:*:)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to