Questions tagged [atan2]

A function in many programming languages for computing the arctangent with two arguments

A function in many programming languages for computing the arctangent with two arguments

152 questions
-3
votes
1 answer

cardinal components to cardinal direction using arctan function

I have ocean currents data (going towards). what would be the conversion I can use? 270-(atan2(zonal,meridional)(180/pi)) or 270-(atan2(meridional,zonal)(180/)) or anything entirely different? I have gone through [this link][1] and also [eol][2]…
reddy
  • 1
-3
votes
1 answer

Converting Excel formula to C?

I need help converting this Excel formula to C (using pure Win32 API, with atan2 from msvcrt). The Excel formula is: =IF(AND(L9=0;M9=0);0;IF(M9>=0;DEGREES(ATAN2(L9;M9));DEGREES(ATAN2(L9;M9))+360)) I tried to port it, but I don´t understand the…
guga
  • 79
  • 10
1 2 3
10
11