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 Aug 12, 2014, 4:56 p.m. EDT
Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 14, 2011, 9:47 p.m. EDT
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: 1 decade ago Aug 12, 2014, 4:56 p.m. EDT
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.