[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sorting complex numbers
From: |
Ronald Crummett |
Subject: |
sorting complex numbers |
Date: |
Wed, 25 Oct 2006 16:37:30 -0700 |
Hi -
Is there a way to sort complex numbers by either the real or imaginary
part and be able to retain the whole complex number? By default,
the 'sort' function sorts by magnitude, so conjugate pairs remain
together. Using 'sort' to sort by real or imaginary part only returns
that part. I am looking for something like in Excel when you sort
according to the elements in one column. Should be doable, yes?
Thanks.
-Ron
- sorting complex numbers,
Ronald Crummett <=