MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Azimuth in Mathematica

  • To: mathgroup at
  • Subject: [mg95086] Re: [mg95071] Azimuth in Mathematica
  • From: Curtis Osterhoudt <cfo at>
  • Date: Tue, 6 Jan 2009 04:09:49 -0500 (EST)
  • Organization: LANL
  • References: <>
  • Reply-to: cfo at

Hi, TL, 

   Use the two-argument form of ArcTan:

ArcTan[z] gives the arc tangent tan^-1(z) of the complex number z. 
ArcTan[x,y] gives the arc tangent of y/x, taking into account which quadrant the point (x,y) is in. 


On Monday 05 January 2009 01:28:32 TL wrote:
> Is there a function in Mathematica that would return the azimuth between 
> two points with known coordinates, 0 being North?
> For example having A(0,0), B(1,0) - the azimuth should be 90 degrees
> its like ArcTan[dx/dy], but I need the quadrant taken into account as 
> well and I need it to handle 90 and 270 degrees properly too
> /it doesn't need to convert the angles to degrees, rads is ok/

Curtis Osterhoudt
cfo at
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments

  • Prev by Date: RE: Azimuth in Mathematica
  • Next by Date: Problems combining new v7.0 Image command with other graphics
  • Previous by thread: Azimuth in Mathematica
  • Next by thread: Re: Azimuth in Mathematica