Post Reply 
(11C) Arithmetic with Fractions
09-16-2018, 10:06 PM
Post: #4
RE: (11C) Arithmetic with Fractions
(09-16-2018 09:17 PM)Thomas Klemm Wrote:  You may want to try the example given in RATIONAL ARITHMETIC IN FLOATING-POINT by W. Kahan for the HP-67/97:

\(\frac{123,456,799}{123,456}-\frac{988,297,396}{988,291}=\frac{31}{189751872}\)

I'm afraid the very basic methods implemented in this program will not be able to handle this. The program first calculates the product of the two denominators which in this case has 12 significant digits and thus more than the 11/15/67/97 can handle. A better algorithm would first determine the LCM of the denominators.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Arithmetic with Fractions - Gamo - 09-15-2018, 07:02 AM
RE: (11C) Arithmetic with Fractions - Dieter - 09-16-2018 10:06 PM
RE: (11C) Arithmetic with Fractions - Gamo - 09-17-2018, 03:47 AM
RE: (11C) Arithmetic with Fractions - Gamo - 09-17-2018, 09:40 AM
RE: (11C) Arithmetic with Fractions - Gamo - 09-22-2018, 06:33 AM



User(s) browsing this thread: 1 Guest(s)