[R] as.complex()
Iris Simmons
|kw@|mmo @end|ng |rom gm@||@com
Mon Mar 25 15:31:00 CET 2024
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 <boss using bangel.tech> wrote:
> Needing a < , > comparison for imaginary numbers
>
> ______________________________________________
> R-help using 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]]
More information about the R-help
mailing list