Micro-challenge: Special Event
|
12-27-2022, 08:28 PM
(This post was last modified: 12-27-2022 08:29 PM by John Keith.)
Post: #19
|
|||
|
|||
RE: Micro-challenge: Special Event
(12-26-2022 02:00 PM)Thomas Klemm Wrote: This example is from \(\pi\) Unleashed. The expression in your example can be reduced to a single fraction, in this case 4945/2016, hence the repeating decimals. This is a natural fit for Gerald H's program ratio2decimal. Here is a simple program using similar inputs to your Python program. Usage: HP 49 or 50 in exact mode. Level 3: the leading digit, 0 if there is none, in this case 2. Level 2: a list of bases, e.g. {7 24 60} Level 1: a list of "digits", e.g. {3 4 5} Result: a string, "2.45287_698412_", where the underscores surround the repeating digits. Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)