|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Overflow in LCM |
Date: | Thu, 20 Apr 2017 18:43:03 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi Kacper, maybe, but the ISO standard says (function And/LCM on page 93) : ¯29J53 ∧ ¯1J107 ¯853J¯329 So the question is: what are the rules for setting the sign of the result? No rules in ISO, no rules in APL2 either. Strictly speaking, if X is some least common multiple then -X is also a common multiple (I believe least refers the magnitude of the LCM, otherwise the ISO example would be wrong). Confused, /// Jürgen On 04/20/2017 06:23 PM, Kacper Gutowski
wrote:
On Thu, Apr 20, 2017 at 05:42:25PM +0200, Juergen Sauermann wrote:thanks, fixed in SVN 926. I believe that the last example is not an overflow but the proper result. At least tryapl.org says so.Thanks. I think the last one also should be positive. Tryapl says so too. -k |
[Prev in Thread] | Current Thread | [Next in Thread] |