(12C) Decimal to Fraction
|
08-10-2018, 05:02 PM
Post: #41
|
|||
|
|||
RE: (12C) Decimal to Fraction
(08-10-2018 12:28 PM)Dieter Wrote: nmax is stored in the n-register That's a clever idea for the HP-12C. (08-09-2018 10:15 PM)Albert Chan Wrote: I had revised my Python code after your HP-11C translation. Now: These are the relevant lines: Code: n1, d1 = int(x), 1 In both cases we use that \(\frac{n1}{d1} < x < \frac{n2}{d2}\). This allows to remove squaring the differences in: Code: 47 RCL 0 Instead we can just use: Code: 47 RCL 3 Kind regards Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)