[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(alleged) BIGNUM BUG
- To: BMT at MIT-MC
- Subject: (alleged) BIGNUM BUG
- From: JONL at MIT-MC (Jon L White)
- Date: Wed, 12 Dec 79 16:38:00 GMT
- Cc: (BUG LISP) at MIT-MC
- Original-date: 12 DEC 1979 1138-EST
Date: 11 December 1979 13:44-EST
From: Barry M. Trager <BMT at MIT-MC>
(remainder c d) returns incorrect result
should be zero, c and d defined in bmt;bignum bug.
I took the liberty of editing BMT;BIGNUMB BUG slightly as follows
;;; -*- Mode: LISP; Package: Macsyma; -*- Saved by BMT
(SETQ C 118937307725496656754857164120791261365228885.
D 6296488643826193618261.
Q (QUOTIENT C D)
R (REMAINDER C D)
C* (PLUS (TIMES Q D) R)
BMTLOSES (EQUAL C C*))
Both in LISP and in NLISP the remainder seems to have been
calculated correctly.