bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Overflow in LCM


From: Louis de Forcrand
Subject: Re: [Bug-apl] Overflow in LCM
Date: Fri, 21 Apr 2017 09:48:28 +0200

The last one (at least IMO) should be positive and equal to the (correct) result of the first of the three examples, because
9094863431 = 9094863431J0

Cheers,
Louis

On 20 Apr 2017, at 18:43, Juergen Sauermann <address@hidden> wrote:

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]