Re: [Bug-apl] ⍋ on complex data

2016-03-06 Thread Juergen Sauermann
Hi, the missing *DOMAIN ERROR* is fixed in *SVN 702*. Sorting like in J has the disadvantage that equal (within ⎕CT) numbers can be quite far away from each other in the result. And it introduces asymmetry between the real and imag direction which is mathematically unsatisfactorily. You could

Re: [Bug-apl] ⍋ on complex data

2016-03-05 Thread Louis de Forcrand
Hmm. In J they are sorted first by real part, then by imaginary part. Louis > On 05 Mar 2016, at 15:46, Elias Mårtenson wrote: > > On 5 March 2016 at 20:12, Alexey Veretennikov > wrote: > > Complex numbers are incomparable in mathematical sense. In Dyalog

Re: [Bug-apl] ⍋ on complex data

2016-03-05 Thread Elias Mårtenson
On 5 March 2016 at 20:12, Alexey Veretennikov wrote: Complex numbers are incomparable in mathematical sense. In Dyalog APL > this leads to DOMAIN ERROR however. This is the intended behaviour in GNU APL as well. This can be seen in the function Bif_F12_SORT::sort(): loop(bz, len_BZ)

Re: [Bug-apl] ⍋ on complex data

2016-03-05 Thread Alexey Veretennikov
Hi, Complex numbers are incomparable in mathematical sense. In Dyalog APL this leads to DOMAIN ERROR however. Louis de Forcrand writes: > Grade-up on complex data yields nothing for me: > > J←0J1 1J0 1J1 ¯1J2 > ⍋J > ⍴⍋J > ⍴⍴⍋J > J[⍋J] > ⍴J[⍋J] > ⍴⍴J[⍋J]

Re: [Bug-apl] ⍋ on complex data

2016-03-05 Thread Louis de Forcrand
⍒J doesn’t work either, for obvious reasons. > On 05 Mar 2016, at 12:23, Louis de Forcrand wrote: > > Grade-up on complex data yields nothing for me: > > J←0J1 1J0 1J1 ¯1J2 > ⍋J > ⍴⍋J > ⍴⍴⍋J > J[⍋J] > ⍴J[⍋J] > ⍴⍴J[⍋J] > 3=⍴⍋J > > No empty lines,

[Bug-apl] ⍋ on complex data

2016-03-05 Thread Louis de Forcrand
Grade-up on complex data yields nothing for me: J←0J1 1J0 1J1 ¯1J2 ⍋J ⍴⍋J ⍴⍴⍋J J[⍋J] ⍴J[⍋J] ⍴⍴J[⍋J] 3=⍴⍋J No empty lines, nothing. Literally just nothing. Thanks, Louis