Hi Thomas,

If you want to compare the imaginary portions, you could do:

Im(z1) < Im(z2)

If you want to compare the magnitudes, you could do:

Mod(z1) < Mod(z2)

If you want to compare complex numbers, i.e. z1 < z2, well that just
doesn't make sense.

On Mon, Mar 25, 2024, 10:17 Thomas K <b...@bangel.tech> wrote:

> Needing a < , > comparison for imaginary numbers
>
> ______________________________________________
> 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
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
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 http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to