GNU bug report logs - #25255
Emacs calculator evalutes lcm to a negative number

Previous Next

Package: emacs;

Reported by: Bug Poster <bugzilla-mail-box <at> yandex.ru>

Date: Fri, 23 Dec 2016 17:16:02 UTC

Severity: normal

Tags: patch

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: peder <at> klingenberg.no (Peder O. Klingenberg)
To: 25255 <at> debbugs.gnu.org
Subject: bug#25255: Emacs calculator evalutes lcm to a negative number
Date: Sun, 05 Feb 2017 11:28:17 +0100
[Message part 1 (text/plain, inline)]
Bug Poster <bugzilla-mail-box <at> yandex.ru> 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.

[0001-LCM-is-defined-to-return-a-positive-integer.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
...Peder...

This bug report was last modified 8 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.