list order / draw-points joined



On 09/07/2011 06:41 AM, Adam Majewski wrote:
> Hi,
>
> I'm drawing circle l0 = {z:abs(z)=ER}
> and its preimages :
>   l1={z1=sqrt(z) }
>   l2={z2:sqrt(z1)}
>   ....
>
> Program is below.
> It works.
> I can join points with lines only for first circle l0.
> For its preimages no  probably because of bad order of points.
>
> Can I order point according to it's argument ?

Yes,

l2_ordered: sort(l2, lambda([z1,z2], is(carg(z1) < carg(z2))))$

--
Mario