J jdm2104 New member Joined Jan 24, 2008 Messages 1 Jan 24, 2008 #1 Hi there, Could you tell me if there is an alternative method for finding the angle of a vector from X and Y coordinates? For example, I would like an alternative to: theta = atan(y / x) Thank you.
Hi there, Could you tell me if there is an alternative method for finding the angle of a vector from X and Y coordinates? For example, I would like an alternative to: theta = atan(y / x) Thank you.
D Deleted member 4993 Guest Jan 24, 2008 #2 jdm2104 said: Hi there, Could you tell me if there is an alternative method for finding the angle of a vector from X and Y coordinates? For example, I would like an alternative to: theta = atan(y / x) Thank you. Click to expand... You could calculate \(\displaystyle r\, = \, \sqrt{x^2 + y^2}\) And use 'r' and either 'x' or 'y' to find arcsin or arccos. However, be cognizant of the respective domains of those functions. In general, arctan is more accurate.
jdm2104 said: Hi there, Could you tell me if there is an alternative method for finding the angle of a vector from X and Y coordinates? For example, I would like an alternative to: theta = atan(y / x) Thank you. Click to expand... You could calculate \(\displaystyle r\, = \, \sqrt{x^2 + y^2}\) And use 'r' and either 'x' or 'y' to find arcsin or arccos. However, be cognizant of the respective domains of those functions. In general, arctan is more accurate.