Post Reply 
Decimals to improper fractions program?
08-13-2018, 03:03 AM
Post: #20
RE: Decimals to improper fractions program?
(06-09-2018 02:54 PM)Csaba Tizedes Wrote:  In engineering practice more important the relative error. In this case the results are:

Code:
+/- 1.000% error:  19/6, 
+/- 0.100% error:  22/7, 
+/- 0.010% error: 289/92, 
+/- 0.001% error: 355/113

Above table is mistaken, 355/113 is 100 times more accurate.
355/113 vs Pi, relative error = 85e-9 = 0.0000085%

I agree that relative error is more useful than digits matched.
All estimates below had 5% relative error, but digits matched are all over the place.

Code:
original  estimate  relative error
9.44      9.90      4.9% -- match 0 digit when rounded
9.03      9.48      5.0% -- match 1 digit when rounded
1.44      1.51      4.9% -- match 0 digit when rounded
1.35      1.42      5.2% -- match 2 digits when rounded
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Decimals to improper fractions program? - Albert Chan - 08-13-2018 03:03 AM



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