Re: [Bug-apl] Modulo or residue function is not generating consistent complete residue systems for some arguments

2017-06-21 Thread Juergen Sauermann
Hi Fred, I have a question about the MOD_test.apl that you kindly provided. In function DIVJ on line 57 ff it says: z ← q , a - b × q ← CMPLX ⌊ ( 9 11 ) ○ a ÷ b so the quotient is rounded down towards minus infinity.

Re: [Bug-apl] Modulo or residue function is not generating consistent complete residue systems for some arguments

2017-06-21 Thread Frederick Pitts
Jürgen, The proposed change to DIVJ does not work because 'q1' is a complex number, so the '×' in '× q1' is the complex complement function, not the sign function.  I tried the proposed change and every test fails. I will try to hack DIVJ to use a floor towards zero instead of towar