Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

What's the difference between atan(y/x) and atan2(y,x) ?

Please login with a confirmed email address before reporting spam

What's the difference between atan(y/x) and atan2(y,x) ?

2 Replies Last Post 2014年8月12日 GMT-4 16:56
Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月14日 GMT-4 21:47
atan2 is the 4 quadrants version of atan as the documentation states. It should therefore give different results for atan2(X,Y) and atan2(-X,-Y). It can also handle the case where X=0.

Nagi Elabbasi
Veryst Engineering
atan2 is the 4 quadrants version of atan as the documentation states. It should therefore give different results for atan2(X,Y) and atan2(-X,-Y). It can also handle the case where X=0. Nagi Elabbasi Veryst Engineering

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 2014年8月12日 GMT-4 16:56
wikipedia knows best:
en.wikipedia.org/wiki/Atan2
wikipedia knows best: http://en.wikipedia.org/wiki/Atan2

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.