Re: Azimuth in Mathematica

• To: mathgroup at smc.vnet.net
• Subject: [mg95086] Re: [mg95071] Azimuth in Mathematica
• From: Curtis Osterhoudt <cfo at lanl.gov>
• Date: Tue, 6 Jan 2009 04:09:49 -0500 (EST)
• Organization: LANL
• References: <200901050828.DAA20571@smc.vnet.net>

```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.

Cheers,
CO

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 remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================

```

• 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