[R] Subject: Re: BUG: atan(1i) / 5 = NaN+Infi ?

Jonathan Dushoff du@ho|| @end|ng |rom mcm@@ter@c@
Thu Sep 12 17:08:54 CEST 2024


> In this case, I do think we should look into the consequences of
> indeed distinguishing
>   <double> * <complex>
>   <complex> * <double>  and
>   <complex> / <double>
> from their respective current {1. coerce to complex, 2. use complex arith}
> arithmetic.

I'm wondering whether – if this indeed gets opened up – it might also
make sense to calculate <double> x / <complex> y using real arithmetic
(as x*y / |y|²)

Jonathan



More information about the R-help mailing list