HP-42S (Free42, DM-42) mini-challenge – Wallis Product
|
07-06-2020, 12:40 PM
Post: #17
|
|||
|
|||
RE: HP-42S (Free42, DM-42) mini-challenge – Wallis Product
(07-06-2020 11:06 AM)EdS2 Wrote:(07-06-2020 02:31 AM)Gerson W. Barbosa Wrote: ...Interested? But of course! So, here it is, based on the amazing, on the astounding Wallis-Wasicki formula :-) Code:
01: 3.151515151515151515151515151515152 02: 3.140740740740740740740740740740741 03: 3.141577263316393751176359872012044 04: 3.141593864074484229522989212911695 05: 3.141592682610236909552589409774771 06: 3.141592651452292998395352098655921 07: 3.141592653532218907530988374852819 08: 3.141592653593856174058282094810482 09: 3.141592653589909875031699539089613 10: 3.141592653589785247473875899289923 11: 3.141592653589792999646253245914736 12: 3.141592653589793254475588473668716 13: 3.141592653589793238954647785071681 14: 3.141592653589793238430189382757839 15: 3.141592653589793238461625819757986 16: 3.141592653589793238462709648277746 17: 3.141592653589793238462645493302460 18: 3.141592653589793238462643247285411 19: 3.141592653589793238462643378896107 20: 3.141592653589793238462643383559629 21: 3.141592653589793238462643383288622 22: 3.141592653589793238462643383278927 23: 3.141592653589793238462643383279480 24: 3.141592653589793238462643383279504 The HP-71B program might be more readable: Code:
RUN ? 8 3.14159265359 For more efficiency it is better to process two terms at a time, but then the results for odd n are not accessible: Code:
RUN ? 8 3.14159265361 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)