Post Reply 
about the proot command output
10-06-2014, 03:58 PM
Post: #4
RE: about the proot command output
If you want to sort by real part first then imaginary part, you can try something like:
l:=[-2+i, -i, 2+i ,3-i ,5i];
sort(l,(a,b)->if re(a)!=re(b) then re(a)<re(b) else im(a)<im(b) end);
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: about the proot command output - parisse - 10-06-2014 03:58 PM



User(s) browsing this thread: 1 Guest(s)