(11C) Arithmetic with Fractions

09162018, 11:41 PM
(This post was last modified: 09182018 07:07 PM by Thomas Klemm.)
Post: #5




RE: (11C) Arithmetic with Fractions
(09162018 10:06 PM)Dieter Wrote: A better algorithm would first determine the LCM of the denominators. But even then the \(\begin{align*} \frac{123,456,799}{123,456}\frac{988,297,396}{988,291} &= \frac{123,456,799\times1,537}{123,456\times1,537}\frac{988,297,396\times192}{988,291\times192} \\ &= \frac{189,753,100,063}{189,751,872}\frac{189,753,100,032}{189,751,872} \\ &= \frac{189,753,100,063189,753,100,032}{189,751,872} \\ &= \frac{31}{189751872} \end{align*} \) W. Kahan explains in the linked paper how to avoid this. Kind regards Thomas 

« Next Oldest  Next Newest »

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