Sorting complex points
- To: mathgroup at smc.vnet.net
- Subject: [mg55874] Sorting complex points
- From: OT <montoz at iol.it>
- Date: Fri, 8 Apr 2005 01:37:06 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi all, I'm trying to sort lists of random complex points on the unit circle using their angles as criterion to sort them: I mean, if z=Cos[a]+I*Sin[a] and w=Cos[b]+I*Sin[b]( 0<=a,b<2*Pi ), I want z<w if a<b; how can i do that? I tried to define Angle[z] as a piecewise funztion, but I still don't understand how to use it with Sort... Thanks, andrea
- Follow-Ups:
- Re: Sorting complex points
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Sorting complex points