|
From: | Frederick Pitts |
Subject: | Re: [Bug-apl] Modulo or residue function is not generating consistent complete residue systems for some arguments |
Date: | Sat, 24 Jun 2017 14:27:24 -0500 |
Jürgen, Using SVN 971 and testing all possible parings of Gaussian integers where the real and imaginary parts range independently from ¯15 to 15, the residue function yields the following anomalous results ¯11J¯1 | ¯10J¯12 1J¯11 1J¯11 0 ¯11J1 | ¯12J¯10 ¯1J¯11 ¯1J¯11 0 ¯1J¯11 | 10J¯12 11J¯1 11J¯1 0 1J¯11 | 12J¯10 11J1 11J1 0 ¯1J11 | ¯12J10 ¯11J¯1 ¯11J¯1 0 1J11 | ¯10J12 ¯11J1 ¯11J1 0 11J¯1 | 12J10 1J11 1J11 0 11J1 | 10J12 ¯1J11 ¯1J11 0 The first item in each test result line is not in the complete residue system for the given modulus as evidenced by the second item on the line. The same test using McDonnell's APL implementations of floor and residue yields no errors. Regards, Fred On Sat, 2017-06-24 at 20:21 +0200, Juergen Sauermann wrote: Hi Fred, |
[Prev in Thread] | Current Thread | [Next in Thread] |