bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#25255: Emacs calculator evalutes lcm to a negative number


From: Peder O. Klingenberg
Subject: bug#25255: Emacs calculator evalutes lcm to a negative number
Date: Sun, 05 Feb 2017 11:28:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin)

Bug Poster <address@hidden> writes:

> This is formula of Least Common Multiple:
>
> lcm(a, b) = |a * b| / gcd(a, b)

I agree, every textbook I can find defines lcm to return a positive
integer.  Here's a patch, which hopefully someone will apply.

Attachment: 0001-LCM-is-defined-to-return-a-positive-integer.patch
Description: Text Data

-- 
...Peder...

reply via email to

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