Post Reply 
Programming Exercise (HP-15C, 15C LE - and others)
03-22-2014, 05:17 PM
Post: #19
RE: Programming Exercise (HP-15C, 15C LE - and others)
(03-22-2014 02:52 PM)Thomas Klemm Wrote:  Now I'm confused.
(03-22-2014 12:47 PM)Gerson W. Barbosa Wrote:  - this is item (a) of the original exercise;
10000.001
\(\sum\) 00
This counts down from 10000 to 1. Isn't that what we want in (b)?

My mistake, sorry!

The summation syntax is neatly explained in Walter's printed manual, at page 124/244, I should have checked instead of assuming it worked the way I imagined. I would quote it here for the benefit of others who, like me, are not familiarized with it, but there's a copyright notice that prevents me from doing so without prior written permission from the author (I think I've unwillingly infringed this in a couple of occasions). Anyway, this might match the previous pdf version publicly available at SourceForge.

(03-22-2014 02:52 PM)Thomas Klemm Wrote:  
(03-22-2014 12:47 PM)Gerson W. Barbosa Wrote:  - a manual +/- is required;
Here's another solution:
Code:
LBL 00
EVEN?
+/-
1/x
END

Size-wise, this is great! Too bad the long running time.

(03-22-2014 02:52 PM)Thomas Klemm Wrote:  
(03-22-2014 12:47 PM)Gerson W. Barbosa Wrote:  - it takes too long: 4 min 6 sec.
That's a lot more that I had expected.

I take you're using the emulator. In this case, an "actual calculator speed" option would be nice.

(03-22-2014 02:52 PM)Thomas Klemm Wrote:  
(03-22-2014 12:47 PM)Gerson W. Barbosa Wrote:  Item (b) would be something like

Code:

LBL A
+/-
RCL+ 00
(-1)ˣ
RCL/ L
END

10001 STO 00
10.001
\(\sum\) 00
+/-
I get: No such Label
Even using \(\sum\) A doesn't make much sense.

Summation and label copied & pasted from your post without adaption. This should have been
...
10000.001
\(\sum\) A
...

Well, it would make sense if summation worked like I imagined it did :-)

Cheers,

Gerson.
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-22-2014 05:17 PM



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