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

(alleged) BIGNUM BUG



    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.