Post Reply 
Equation or not?
02-25-2017, 09:31 AM (This post was last modified: 02-25-2017 09:40 AM by Didier Lachieze.)
Post: #7
RE: Equation or not?
Nice solution but not the fastest one....

(02-24-2017 11:34 PM)EdDereDdE Wrote:  Note: implicit engine loops (here in the "remove") are always faster than interpreted "for ..." loops, aren't they?
Not always, in this case function calls between CAS (remove) and Home (INSTRING) bring some penalty.

I've compared on my physical Prime the three solutions and here is the average execution time for 20 runs of each function:

findeq (Han): 0.0058_s
findEq (Didier): 0.0121_s
getEq (EdDereDdE): 0.0155_s

Here is how I did the measurements :
  • type TEVAL with the function name, e.g. TEVAL(findeq)
  • press Enter 20 times to get 20 results
  • type: MAKELIST(Ans(I),I,1,20)/1_s▶D1 to store the 20 results in Stat_1Var D1
  • do the same for the other functions, TEVAL(findEq) and TEVAL(getEq(L0)) and store the results in D2 and D3
  • open the Stat_1Var app, select D2 and D3 in Symbol view, go to Num view and press Stats to see the mean values
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Equation or not? - DrD - 02-24-2017, 02:50 PM
RE: Equation or not? - Han - 02-24-2017, 03:59 PM
RE: Equation or not? - DrD - 02-24-2017, 04:22 PM
RE: Equation or not? - Han - 02-24-2017, 04:37 PM
RE: Equation or not? - Didier Lachieze - 02-24-2017, 08:02 PM
RE: Equation or not? - EdDereDdE - 02-24-2017, 11:34 PM
RE: Equation or not? - Didier Lachieze - 02-25-2017 09:31 AM
RE: Equation or not? - DrD - 02-25-2017, 11:03 AM
RE: Equation or not? - Arno K - 02-28-2017, 10:32 PM
RE: Equation or not? - Han - 03-01-2017, 12:23 AM
RE: Equation or not? - Arno K - 03-01-2017, 08:01 AM
RE: Equation or not? - Han - 03-01-2017, 04:04 PM
RE: Equation or not? - Arno K - 03-01-2017, 07:15 PM
RE: Equation or not? - Han - 03-01-2017, 07:22 PM
RE: Equation or not? - parisse - 03-02-2017, 07:35 AM
RE: Equation or not? - DrD - 03-02-2017, 12:31 PM



User(s) browsing this thread: 2 Guest(s)