Post Reply 
Programming Exercise (HP-15C, 15C LE - and others)
03-23-2014, 12:36 AM (This post was last modified: 04-01-2014 02:48 AM by Gerson W. Barbosa.)
Post: #23
RE: Programming Exercise (HP-15C, 15C LE - and others)
(03-22-2014 09:47 PM)Werner Wrote:  42S:

Code:
00 { 20-Byte Prgm }
01>LBL "S"
02 4
03 10^X
04 ENTER
05 CLX
06>LBL 00
07 RCL ST Y
08 1/X
09 X<>Y
10 -
11 DSE ST Y
12 GTO 00
13 END

14 minutes 59 seconds on my HP-42S! The faster running time on the HP-20S can be explained by the higher perfomance index of the latter, according to this benchmark.

The WP 34S version is about only 200 milliseconds slower than the fastest one so far:
Code:

LBL A                         LBL A                   
TICKS                         TICKS
EEX                           EEX
4                             4
ENTER^                        #000
#000                          #001
RCL Y                         +/-
1/x                           RCL/ Z
x<> Y                         STO+ Y
-                             x<> L
DSE Y                         DSE Z
BACK 005                      BACK 005
TICKS                         R^
RCL- T                        TICKS
END                           RCL- Y
                              END


166.2 (avg. of 5 runs)        163.8 (avg. of 5 runs)     

16.6 seconds                  16.4 seconds

Cheers,

Gerson.

Edited to correct an error: 14 minutes 59 seconds, not 14.59 seconds.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-23-2014 12:36 AM



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