+ 1

Is it possible to sort complex numbers? And how to sort it? Explained

sortting complex numbers

27th Nov 2019, 3:29 PM
Arjun T Raju
Arjun T Raju - avatar
3 Answers
+ 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.
29th Nov 2019, 3:01 AM
John Wells
John Wells - avatar
+ 1
👍👍
29th Nov 2019, 3:04 PM
Arjun T Raju
Arjun T Raju - avatar