HP-42S (Free42, DM-42) mini-challenge – Wallis Product
|
07-05-2020, 03:43 AM
Post: #8
|
|||
|
|||
RE: HP-42S (Free42, DM-42) mini-challenge – Wallis Product
Hello, Valentín!
(07-05-2020 02:07 AM)Valentin Albillo Wrote: . Sorry, but the most important restriction here was evaluating the product for n as large as 1E6 or 1E7, which is impossible with that approach. Anyway, thanks for calling my attention to alternative methods as they may be useful for another application I have in mind for which a much more narrow range will suffice. More or less in the same vein: Code:
Examples: 414 -> 3.13969841676 5102 -> 3.141438733173932101937205797737162 These are the maximum values of n for the HP-42S and Free42, respectively, that will not cause overflow. (07-05-2020 02:07 AM)Valentin Albillo Wrote: Thanks for the nice mini-challenge, I saw it at 4:00 a.m. and it was just what I needed before going to bed. You too! You are most welcome. Thanks again for you contribution. Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)