> Message: 4 > Date: Thu, 12 Sep 2024 11:21:02 -0400 > From: Duncan Murdoch <murdoch.dun...@gmail.com> > That's not the correct formula, is it? I think the result should be x * > Conj(y) / Mod(y)^2 .
Correct, sorry. And thanks. > So that would involve <double> * <complex> and > <complex> / <double>, not just real arithmetic. Not an expert, but I don't see it. Conj and Mod seem to be numerically straightforward real-like operations. We do those, and then multiply one complex number by one real quotient. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.