Mar 11 2022 04:22 PM
atan2(x,y) is returning the value of atan2(y,x).
for example, if you put this in an Excel cell you should get 30 but get 60.
=degrees(atan2(sin(radians(30)), cos(radians(30)))
Mar 11 2022 06:22 PM
Mar 11 2022 06:39 PM
@mtarler So, what has thrown me is I expect, in spite of the argument names, for the function to take atan2(opposite, adjacent) since the tangent is opposite over adjacent. But, the name x does imply the adjacent, so I concede. Code libraries I have worked with are of the form arc2(opposite, adjacent) so that is what I was expecting. Python for example has atan2(y,x). A\This is a case of what you expect to see keeping you from seeing what is actually in the documentation.