Post Reply 
In support of the 33s & 35s
01-03-2018, 05:54 PM
Post: #26
RE: In support of the 33s & 35s
(01-02-2018 06:42 PM)grsbanks Wrote:  
(01-02-2018 10:25 AM)pier4r Wrote:  Anyway for the 35s I guess grsbanks (if I remember who reported the timings) used another algorithm to be slightly faster. Could it be?

I just ran the test agan and got 286 seconds this time, so I can confirm that my initial report of 287s was "correct".

This is the program I used. Note that everything is accumulated in the stack to speed things up and I do use a DSE instruction to avoid having to do the end-of-loop test the "old fashioned" way. The 35S is slow enough as it is so let's give it a fighting chance Smile

Code:
S001 LBL S
S002 RAD
S003 ABS
S004 IP
S005 STO I
S006 CLSTK
S007 RCL I
S008 ATAN
S009 SIN
S010 E^X
S011 3
S012 1/X
SO13 Y^X
S014 +
S015 DSE I
S016 GTO S007
S017 STOP
S018 GTO S003

I ran your code on my HP 33s and was surprised that my execution times actually increased. It was still faster than the HP 35s, but the differences were not as large. So just because a code is more efficient for one calculator does not mean it will be so for another.

As a side note, you could have reduced the run times slightly on the HP 35s by replacing the sequence 3 1/X Y^X with 3 <X root of Y>. Using this code on both the HP 33s and HP 35s with N=1000 yields a run time of 282 sec on the HP 35s and 217 sec on the HP 33s.

The only part of your code that I could not enter directly was CLSTK, which I replaced with CLx ENTER ENTER ENTER. This should have a negligible effect on execution time, since it falls outside the summation loop.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: In support of the 33s & 35s - cjmcc - 12-31-2017, 10:36 PM
RE: In support of the 33s & 35s - TheKaneB - 01-01-2018, 12:08 AM
RE: In support of the 33s & 35s - Joe Horn - 01-01-2018, 02:03 PM
RE: In support of the 33s & 35s - pier4r - 01-01-2018, 03:28 PM
RE: In support of the 33s & 35s - pier4r - 01-01-2018, 08:38 PM
RE: In support of the 33s & 35s - pier4r - 01-01-2018, 03:45 PM
RE: In support of the 33s & 35s - Gerald H - 01-01-2018, 05:41 PM
RE: In support of the 33s & 35s - pier4r - 01-01-2018, 04:31 PM
RE: In support of the 33s & 35s - pier4r - 01-02-2018, 10:25 AM
RE: In support of the 33s & 35s - grsbanks - 01-02-2018, 03:10 PM
RE: In support of the 33s & 35s - grsbanks - 01-02-2018, 06:42 PM
RE: In support of the 33s & 35s - Michael de Estrada - 01-03-2018 05:54 PM
RE: In support of the 33s & 35s - Dieter - 01-03-2018, 07:05 PM
RE: In support of the 33s & 35s - pier4r - 01-02-2018, 06:53 PM
RE: In support of the 33s & 35s - pier4r - 01-03-2018, 08:19 PM
RE: In support of the 33s & 35s - Dieter - 01-03-2018, 09:11 PM
RE: In support of the 33s & 35s - Dieter - 01-03-2018, 09:43 PM
RE: In support of the 33s & 35s - pier4r - 01-03-2018, 10:13 PM
RE: In support of the 33s & 35s - TheKaneB - 01-03-2018, 10:25 PM
RE: In support of the 33s & 35s - Trond - 01-03-2018, 10:47 PM
RE: In support of the 33s & 35s - TheKaneB - 01-03-2018, 11:15 PM
RE: In support of the 33s & 35s - Dieter - 01-04-2018, 07:49 AM
RE: In support of the 33s & 35s - TheKaneB - 01-03-2018, 11:53 PM
RE: In support of the 33s & 35s - Dieter - 01-04-2018, 08:06 AM
RE: In support of the 33s & 35s - grsbanks - 01-04-2018, 08:38 AM
RE: In support of the 33s & 35s - TheKaneB - 01-04-2018, 10:00 AM
RE: In support of the 33s & 35s - pier4r - 01-04-2018, 08:53 AM
RE: In support of the 33s & 35s - BartDB - 01-04-2018, 12:25 PM
RE: In support of the 33s & 35s - pier4r - 01-04-2018, 01:21 PM
RE: In support of the 33s & 35s - Dieter - 01-04-2018, 07:00 PM
RE: In support of the 33s & 35s - BartDB - 01-04-2018, 07:31 PM
RE: In support of the 33s & 35s - Dieter - 01-04-2018, 08:33 PM
RE: In support of the 33s & 35s - TheKaneB - 01-04-2018, 02:34 PM



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