Post Reply 
Speed of HP-15C LE - and it's capabilities
05-23-2014, 12:37 PM (This post was last modified: 05-23-2014 01:50 PM by Tugdual.)
Post: #15
RE: Speed of HP-15C LE - and it's capabilities
I completed a version of code for the 34s. I started from scratch so don't even try to compare to the 15C version. I doubt my code is optimal, considering its size and the much higher capabilities of the 34s compared to the 15C. Anyway, here is what it looks like.
I tested it on the 34s emulator and the result is pretty quick. On the real 34s it seems to take much more time; I haven't seen the 1st result after 40mn and I think I'm going to stop to avoid draining the battery.
Edit: took around 1h to find a result.

Usage:
Call A to run.
When it stops you'll read:
FOUND
219,867,435

which means (read right to left) 5/34+7/68+9/12
Press R/S to search for the next solution
Code:
001 LBL A
002 1
003 EEX
004 5
005 +/-
006 STO 15
007 8
008 STO 09
009 LBL 00
010 RCL 09
011 STO→09
012 INC→09
013 DSL 09
014 GTO 00
015 LBL 07
016 1
017 ENTER
018 10
019 STO 09
020 RCL 00
021 x Y
022 RCL× 01
023 RCL+ 02
024 /
025 -
026 RCL 03
027 RCL 04
028 RCL× 09
029 RCL+ 05
030 /
031 -
032 RCL 06
033 RCL 07
034 RCL× 09
035 RCL+ 08
036 /
037 -
038 ABS
039 x>? 15
040 GTO 09
041 CLα
042 α'FOU'
043 α'ND'
044 8
045 STO 09
046 CLx
047 LBL 10
048 RCL 09
049 10
050 RCL×→09
051 +
052 DSL 09
053 GTO 10
054 PROMPT
055 LBL 09
056 XEQ 08
057 GTO 07
058 CLα
059 α'END'
060 PROMPT
061 RTN
062 LBL 08
063 8
064 STO 09
065 LBL 01
066 RCL 09
067 STO 10
068 DEC 09
069 RCL→09
070 x≥?→10
071 GTO 05
072 8
073 STO 11
074 LBL 02
075 RCL→09
076 x<?→11
077 GTO 03
078 DEC 11
079 GTO 02
080 LBL 03
081 RCL→11
082 x→09
083 STO→11
084 RCL 10
085 STO 13
086 8
087 STO 14
088 LBL 04
089 RCL 13
090 x≥? 14
091 RTN
092 RCL→13
093 x→14
094 STO→13
095 INC 13
096 DEC 14
097 GTO 04
098 LBL 05
099 RCL 09
100 x≠0?
101 GTO 01
102 0
103 STO 13
104 8
105 STO 14
106 LBL 06
107 RCL 13
108 x≥? 14
109 RTN+1
110 RCL→13
111 x→14
112 STO→13
113 INC 13
114 DEC 14
115 GTO 06
116 END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Speed of HP-15C LE - and it's capabilities - Tugdual - 05-23-2014 12:37 PM



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