HP-42S (Free42, DM-42) mini-challenge – Wallis Product
|
07-11-2020, 06:43 PM
Post: #26
|
|||
|
|||
RE: HP-42S (Free42, DM-42) mini-challenge – Wallis Product
(07-06-2020 02:31 AM)Gerson W. Barbosa Wrote: I have a 141-byte, 81-step program that gives 12 digits of \(\pi\) in less than seven seconds on the real HP-42s and 34 digits instantly on my smartphone: 3.141592653589793238462643383279504 (the last digit should be a ‘3’), using the Wallis Product as a basis. Down to 135 bytes and 74 steps, including LBL and END. It might be optimized even more by HP-41 programmers who usually avoid using too many recall arithmetic as I do. Anyway, on the 42S I tend to value number of steps over byte count. Right now I have 5906 free bytes on the 42S and 1773076480 on Free42, way more memory than I’ll ever need :-) Code:
HP-75C program: Code:
Register usage on 42S/Free42: N, I: R01 W: R02 L: R03 M: R04 C, D, E, S, T: Stack |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)