HP Prime: a student's view
|
08-31-2021, 11:20 PM
Post: #22
|
|||
|
|||
RE: HP Prime: a student's view
Well this certainly exploded.
Tom L: I changed my code to what's below, per your suggestion, and I actually got a higher performance index, 528,000. (give or take a few hundred) Code: from math import * Even if I take Tom L's original code and remove the if r0 <= 0: branch, replacing the while True with while r0 != 0, I still get about the same performance as before (~170,000). I even get that same index if I replace the outer for loop with a while i != 0 loop (where i starts out as 10000 and is decremented each loop). Thomas_Sch Wrote:imho there are few differences in the implementation.Clearly, but where are they? I can't find anything at all, beyond differences in loops. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)