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>
- Reply-to: cfo at lanl.gov
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
==========================================================
- References:
- Azimuth in Mathematica
- From: TL <latev@shaw.ca>
- Azimuth in Mathematica