Little explorations with HP calculators (no Prime)
|
10-22-2017, 11:05 PM
Post: #240
|
|||
|
|||
RE: Little explorations with HP calculators (no Prime)
(10-22-2017 03:51 PM)pier4r Wrote: generating 1000 values in a list with the SIN function takes time. Adding elements to a list one by one is very inefficient and causes a lot of garbage collection. It is much faster to accumulate the elements on the stack, then combine them into a list like so: Code: \<< 1. 1000. FOR j j SIN which takes about 12.2 seconds on my 50g. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)