MathGroup Archive 2009

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

Search the Archive

Re: Very strange behaviour of ArcTan[]


On Aug 17, 8:06 am, Alexey <lehi... at gmail.com> wrote:

> I just have discovered some strange (buggy?) feature of ArcTan[]
> function in Mathematica 5.2. Try the following;

What you've discovered is that ArcTan has a definition for two
arguments where ArcTan[x, y] gives you ArcTan[y/x], but correctly
accounting for the signs of x and y. This is actually a pretty common
bit of functionality to have access to; in the C standard library
there's a two-argument function called atan2 that does the same thing,
for instance.

Cheers,
Pillsy


  • Prev by Date: Re: Very strange behaviour of ArcTan[]
  • Next by Date: Re: Very strange behaviour of ArcTan[]
  • Previous by thread: Re: Very strange behaviour of ArcTan[]
  • Next by thread: Re: Very strange behaviour of ArcTan[]