+ 1
Is it possible to sort complex numbers? And how to sort it? Explained
sortting complex numbers
2 Réponses
+ 6
There is no valid method to sort complex numbers. If you take two numbers and compare them, their squares should have the same relationship. Complex numbers can fail this. You can decide to ignore this and sort them anyway. One method is sort on real part, when matching sort imaginary. Another method would be to square the imaginary times negative one times the real.
+ 1
👍👍