[cfp-interest 3440] Re: Range error conditions for atan2 and atan2pi

Javier Múgica javier at aerotri.es
Mon Apr 14 06:39:45 PDT 2025


Dear Paul,

On Mon, 14 Apr 2025 07:48:25 +0200, Paul Zimmermann <Paul.Zimmermann at inria.fr> wrote:

>        Dear Javier,
>
> atan2(y,x) gives the argument of the complex number x+i*y.
> For y/x near 0 and x negative, the argument is near +/-pi, thus there is
> no underflow

Yes, of course! That is the reason for using atan2 and not atan. I had had a lapsus there.

> Paul





More information about the cfp-interest mailing list