Re: Azimuth in Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg95103] Re: Azimuth in Mathematica
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 6 Jan 2009 04:13:11 -0500 (EST)
- Organization: Uni Leipzig
- References: <gjsgb6$k2l$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, I was always wondering why ArcTan[] alow one and two arguments, i.e., ArcTan[x] and ArcTan[x,y] (x, and y in *that* order) Regards Jens 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/ >