Pi digits (again) - an unbounded spigot program
|
05-19-2024, 03:47 AM
(This post was last modified: 05-19-2024 07:16 AM by komame.)
Post: #20
|
|||
|
|||
RE: Pi digits (again) - an unbounded spigot program
(05-18-2024 03:19 PM)Guenter Schink Wrote: output is the same as Thomas' If performance is important, this code can be optimized by buffering the result in a variable and then outputting it to the terminal all at once, instead of outputting partial results multiple times. Code: from hpprime import * This reduces the execution time of this task on the HP Prime to below 1 second (significant acceleration). Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)