mjc
2008-03-05 05:26:41 UTC
A recent post here (iirc) asked about computing atan2(x,y), the
inverse tan of y/x in the proper quadrant.
The current issue of The College Mathematics Journal has an article by
William Freed and Athanasios Tavouktsoglou with the following formula:
atan2(x,y) = 2*atan(y/(x+sqrt(x^2+y^2)) except for x<0 and y=0;
pi for x<0 and y=0.
This might be of use.
inverse tan of y/x in the proper quadrant.
The current issue of The College Mathematics Journal has an article by
William Freed and Athanasios Tavouktsoglou with the following formula:
atan2(x,y) = 2*atan(y/(x+sqrt(x^2+y^2)) except for x<0 and y=0;
pi for x<0 and y=0.
This might be of use.