(11C) Arithmetic with Fractions
09-17-2018, 01:12 AM
Post: #6
 Albert Chan Senior Member Posts: 1,676 Joined: Jul 2018
RE: (11C) Arithmetic with Fractions
Hi, Thomas Klemm,

Thanks for the link to Kahan paper. I tried it, it work perfectly.

However, Kahan's example does not shown the algorithm's power.
Doing the math as fixed fraction already avoid the overflow problem ...

123456799/123456 - 988297396/988291
= (1000 + 799/123456) - (1000 + 6396/988291)
= 799/(643*192) - 6396/(643*1537)
= (799 * 1537 - 6396 * 192) / (643*192*1537)
= (1228063 - 1228032) / 189751872
= 31 / 189751872
 « Next Oldest | Next Newest »

 Messages In This Thread (11C) Arithmetic with Fractions - Gamo - 09-15-2018, 07:02 AM RE: (11C) Arithmetic with Fractions - Dieter - 09-16-2018, 04:58 PM RE: (11C) Arithmetic with Fractions - Thomas Klemm - 09-16-2018, 09:17 PM RE: (11C) Arithmetic with Fractions - Dieter - 09-16-2018, 10:06 PM RE: (11C) Arithmetic with Fractions - Steve Simpkin - 09-17-2018, 01:46 AM RE: (11C) Arithmetic with Fractions - Thomas Klemm - 09-16-2018, 11:41 PM RE: (11C) Arithmetic with Fractions - Dieter - 09-18-2018, 06:51 PM RE: (11C) Arithmetic with Fractions - Valentin Albillo - 09-18-2018, 09:25 PM RE: (11C) Arithmetic with Fractions - Dieter - 09-18-2018, 10:38 PM RE: (11C) Arithmetic with Fractions - Massimo Gnerucci - 09-19-2018, 07:45 AM RE: (11C) Arithmetic with Fractions - Albert Chan - 09-17-2018 01:12 AM RE: (11C) Arithmetic with Fractions - Albert Chan - 09-17-2018, 04:04 PM RE: (11C) Arithmetic with Fractions - Gamo - 09-17-2018, 03:47 AM RE: (11C) Arithmetic with Fractions - Carsen - 09-17-2018, 08:14 AM RE: (11C) Arithmetic with Fractions - Gamo - 09-17-2018, 09:40 AM RE: (11C) Arithmetic with Fractions - Albert Chan - 09-17-2018, 06:44 PM RE: (11C) Arithmetic with Fractions - Thomas Klemm - 09-18-2018, 07:19 PM RE: (11C) Arithmetic with Fractions - Thomas Klemm - 09-18-2018, 07:29 PM RE: (11C) Arithmetic with Fractions - Gamo - 09-22-2018, 06:33 AM RE: (11C) Arithmetic with Fractions - Dieter - 09-24-2018, 12:59 PM RE: (11C) Arithmetic with Fractions - Dieter - 09-24-2018, 05:29 PM

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