Repeating Decimals / Recurring Decimals
|
01-21-2018, 11:01 AM
(This post was last modified: 01-21-2018 11:34 PM by StephenG1CMZ.)
Post: #2
|
|||
|
|||
RE: Repeating Decimals
(PPL) Version 0.2 follows the sequence of steps in Joe Horn's algorithm using MultiplicateOrder, which can be found here: http://www.hpmuseum.org/forum/thread-3212.html
Output is currently a list: 1: {Length of transient, transient} 2: {Length of recurring part, both parts but omitting the 0. Or 1.} 3: Just as a check, the real value. The formatting could be improved. Note that if the length of the recurring part exceeds 12 the recurring part returned is unreliable and should probably be replaced by NaN (the indicated length is OK, but not the digits...and sometimes they are not digits). Code:
Note: A comparable CAS implementation could improve ranges handled. Update: 99989 crashes the Android emulator. Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Repeating Decimals / Recurring Decimals - StephenG1CMZ - 01-21-2018, 11:00 AM
RE: Repeating Decimals - StephenG1CMZ - 01-21-2018 11:01 AM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 01-24-2018, 07:21 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 01-26-2018, 11:02 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 01-31-2018, 09:10 AM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 02-01-2018, 05:53 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 02-04-2018, 06:46 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 02-06-2018, 11:24 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 02-07-2018, 08:02 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 02-08-2018, 09:03 PM
RE: Repeating Decimals / Recurring Decimals - StephenG1CMZ - 02-10-2018, 11:15 PM
|
User(s) browsing this thread: 2 Guest(s)