[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25255: Emacs calculator evalutes lcm to a negative number
From: |
Bug Poster |
Subject: |
bug#25255: Emacs calculator evalutes lcm to a negative number |
Date: |
Fri, 23 Dec 2016 19:32:19 +0900 |
GNU Emacs 24.3.1
This is formula of Least Common Multiple:
lcm(a, b) = |a * b| / gcd(a, b)
The calculator evaluates it, but doesn't take its absolute value.
Input:
5
n
<RET>
4
k
l
Output:
1: -20
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#25255: Emacs calculator evalutes lcm to a negative number,
Bug Poster <=