MathGroup Archive 2009

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

Search the Archive

Re: Very strange behaviour of ArcTan[]


Alexey <lehin.p at gmail.com> wrote:
> Hello,
> I just have discovered some strange (buggy?) feature of ArcTan[]
> function in Mathematica 5.2. Try the following;
>
> In[72]:=
> ArcTan[.5,$MachinePrecision]
> ArcTan[.5]
>
> Out[72]=
> 1.53947
>
> Out[73]=
> 0.463648
>
> The expression ArcTan[.5,$MachinePrecision] must (?) give an error

No. Look at the documentation for ArcTan. There is a very useful version of
ArcTan which takes _two_ arguments. And of course $MachinePrecision merely
supplies a numerical value for the second argument.

> but
> in really gives some strange output without any error messages... What
> do you think about this?

There's nothing wrong.

David


  • Prev by Date: Re: Very strange behaviour of ArcTan[]
  • Next by Date: Re: why the inputs are not ODEs in NDSolve function
  • Previous by thread: Re: Very strange behaviour of ArcTan[]
  • Next by thread: Re: Very strange behaviour of ArcTan[]