On Thu, Dec 06, 2018 at 11:35:38PM -0700, Derek Lamb wrote:
> Hi Luis,
> 
> Thanks for the bug report.
...
> (although atan2 should not return a complex number.)

It seems that, for example, fortran lacks a complex atan2, but I don't
see why atan2 of two complex numbers shouldn't be defined as a complex
valued function. For my own work it would be useful (for example, for
solving dispersion relations in dissipative media), and that is the
reason I stumbled into the problem. 

> Also note that there is already Carg, which does the same thing:
> pdl> p Carg(0+1*i);
> 1.5707963267949

Yes, but Carg is indeed expected to be real.

Best regards,
Luis



-- 

                                                                  o
W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
Apdo. Postal 48-3, 62251             |                           (*)/\/  \
Cuernavaca, Morelos, México          | [email protected]   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB




_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to