(12C) Decimal to Fraction
|
08-09-2018, 10:30 AM
(This post was last modified: 08-09-2018 10:39 AM by Dieter.)
Post: #33
|
|||
|
|||
RE: (12C) Decimal to Fraction
(08-09-2018 09:30 AM)Thomas Klemm Wrote: Maybe I missed something but is there a reason for not using Farey sequences? This should be easy to handle (use 1/input if input>1 and swap numerator and denominator afterwards). But this also means that you define the largest possible numerator. #-) I tried this algorithm on the 12C. Here is what I got for pi, using 1/pi as the input: 3,141592653 [1/x] 500 => 113/355 (as expected) 3,141592653 [1/x] 600 => 113/355 (as expected) 3,141592653 [1/x] 700 => 219/688 (?!?) What's this? Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)