Wp34s STAT and PRG doubts



#7

Here are two more things that might be bugs or intended behavior... I didn't find informations on the manual telling me either way.

1) I have entered several data points with Sigma+. Then I chose, from the STAT catalog, x^ (the ^ goes above the x of course), and the calc showed a numerical value, and "Linear" on top. If then I press the up/down arrows, on the top line, I see the contents of the program memory, and the numerical value changes according to the step that is displayed above.
I know next to nothing about statistics, but this looks like a strange behavior...

2) If I want to write a program that as the first thing, it duplicates what is in x to y (like the DUP command of RPL), I have to put two ENTER steps. I thought just one should do. Why does the first ENTER do nothing?

Thanks,
Cristian


#8

Quote:
1) I have entered several data points with Sigma+. Then I chose, from the STAT catalog, x^ (the ^ goes above the x of course), and the calc showed a numerical value, and "Linear" on top. If then I press the up/down arrows, on the top line, I see the contents of the program memory, and the numerical value changes according to the step that is displayed above.

What did you expect the up and down arrows to do here?

They are in fact single stepping whatever program you have in memory & even if you don't have a program, they'll show step 000. The x^ operation has finished.

Quote:
2) If I want to write a program that as the first thing, it duplicates what is in x to y (like the DUP command of RPL), I have to put two ENTER steps. I thought just one should do. Why does the first ENTER do nothing?

You are probably getting caught by ENTER duplicating x into y and disabling stack lift. If you enter a number after ENTER, whatever in x is destroyed. As a fix RCL X should do what you want.

- Pauli


Edited: 13 June 2011, 3:48 a.m.


#9

Quote:

What did you expect the up and down arrows to do here?

They are in fact single stepping whatever program you have in memory & even if you don't have a program, they'll show step 000. The x^ operation has finished.


You're right. I was fooled by the fact that the top row said "linear" - other functions I usually use don't say anything on the top row - so I thought there was some choice to do, or something like that.
The fact that I posted that around 5am didn't help! :) Sorry!

Quote:
You are probably getting caught by ENTER duplicating x into y and disabling stack lift. If you enter a number after ENTER, whatever in x is destroyed. As a fix RCL X should do what you want.

I see. I don't actually enter a number after, but execute RAN# (I want to multiply X by a random number, but keeping a copy on y). I didn't think about the stack lifting being disabled.
I tried RCL X and it works. It works exactly like a DUP, right?

Thanks again,
Cristian


#10

Quote:
I see. I don't actually enter a number after, but execute RAN# (I want to multiply X by a random number, but keeping a copy on y). I didn't think about the stack lifting being disabled.
I tried RCL X and it works. It works exactly like a DUP, right?

Yes, RCL X is equivalent to DUP.


RAN# will replace the X register if stack lift is disabled. Plenty of other commands will as well.


Another sequence that should work and which is shorter is:

    RAN#
RCL* Y


- Pauli

#11

While we're on this topic: debugging 34s programs with the single-step key (down-arrow) always felt a bit ...strange for me. Now I think I know why:

While stepping through a program the 34s displays the previous step that has already been executed. So the numeric display shows the result after the step that is displayed in the upper line. In all other HPs I know of the display shows the next step that will be executed as soon as the SST-key is pressed. Makes more sense to me: on the 34s you never know what comes next. What do you think?

Dieter


#12

Hallo Dieter, that's Pauli's domain :-)


Possibly Related Threads…
Thread Author Replies Views Last Post
  [HP-PRIME prg] 1 CompSystems 1 1,082 11-03-2013, 07:03 AM
Last Post: Han
  HP50g rebind stat key Chris Smith 1 1,190 05-26-2013, 06:21 PM
Last Post: Software49g
  For sale: HP 25C and Stat Pac 2 for HP 65 Michae Altmann 1 1,188 04-21-2013, 01:24 PM
Last Post: Raymond Del Tondo
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 1,248 10-04-2012, 04:59 PM
Last Post: Paul Dale
  aOT (almost Off Topic)--HP Stat Apps Question Matt Agajanian 6 2,394 04-05-2012, 04:27 AM
Last Post: Nick_S
  [wp34s] Incomplete Gamma on the wp34s Les Wright 18 5,348 12-06-2011, 11:07 AM
Last Post: Namir
  [wp34s] Romberg Integration on the wp34s Les Wright 2 1,520 12-04-2011, 10:49 PM
Last Post: Les Wright
  Updated DATA management (STAT & DATA) Geir Isene 10 2,764 11-21-2010, 04:18 PM
Last Post: Geir Isene
  HP-35s Stat Pac Free to download!! Namir 11 2,988 02-23-2009, 10:58 AM
Last Post: Namir
  Help with an HP-67 Stat Pac I Program Namir 0 672 04-29-2008, 10:30 AM
Last Post: Namir

Forum Jump: