(12C) Decimal to Fraction
|
08-09-2018, 10:15 PM
Post: #39
|
|||
|
|||
RE: (12C) Decimal to Fraction
(08-09-2018 06:38 PM)Thomas Klemm Wrote:(08-09-2018 03:39 PM)Albert Chan Wrote: I removed \(0 < x < 1\) restriction of farey fraction. I had revised my Python code after your HP-11C translation. Now: 1. hi = lo + 1 instead of 1/0 (infinity), thus saved 1 iteration 2. Both abs() calls are removed For reference, this was how I removed the restriction (see Farey Pair): Continued Fractions without Tears |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)