WP-34S: # constant in exponent



#5

In debugging a program, I found that I had used:

1
EEX
# nn

It did not do what I expected. Is there a specific reason why # constants cannot be used for exponents, or did it just not make it into the design?


#6

I can guess why, but that question goes to Pauli.

d:-)

#7

Marcel,

the #nnn shortcut enters an integer and quits digit entry before and after the command. Thus it cannot be combined with regular digit entry. So the sequence...

 1
EEX
#123
...does not return 1E123. Instead, it enters two different values: "1 EEX" equals 1 and #123 is, well, 123. So you will end up with 1 in Y and 123 in X. That's the way it is supposed to work. And it is consistent, since you cannot use...
 1
#234
...to enter 1234 either. Or even think of this one:
#123
#456
Of course this will not produce a six-digit integer like 123456. ;-)

By the way, your example can simply be coded as

 #001
SDR nn
That's even shorter.

Dieter

#8

Dieter got it right.

Consider EEX [pi]. What should this do?

The # nnn commands are constants. They terminate command line input and raise the stack usually. The are not an extension of keyboard digit input.


- Pauli


Possibly Related Threads…
Thread Author Replies Views Last Post
  [WP-34S] Unfortunate key damage with update to V3 :( svisvanatha 5 3,138 12-10-2013, 11:37 PM
Last Post: Les Bell
  WP-34S (Emulator Program Load/Save) Barry Mead 1 1,776 12-09-2013, 05:29 PM
Last Post: Marcus von Cube, Germany
  DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 2,472 12-04-2013, 11:14 AM
Last Post: Barry Mead
  [HP Prime] Using n-root symbol and exponent problem uklo 7 2,847 11-11-2013, 01:39 AM
Last Post: Alberto Candel
  WP 34S/43 ?'s Richard Berler 3 2,028 11-10-2013, 02:27 AM
Last Post: Walter B
  My FrankenCulator (wp-34s) FORTIN Pascal 4 2,106 11-09-2013, 06:18 PM
Last Post: FORTIN Pascal
  WP 34S Owner's Handbook Walter B 5 2,640 11-09-2013, 05:34 PM
Last Post: Harald
  wp 34s overlay and programming. FORTIN Pascal 6 2,852 11-08-2013, 01:28 PM
Last Post: Nick_S
  m.dy in display of WP-34S Harold A Climer 3 1,910 11-05-2013, 11:28 AM
Last Post: Andrew Nikitin
  WP 34s : An old problem coming back Miguel Toro 2 1,710 11-05-2013, 03:00 AM
Last Post: Marcus von Cube, Germany

Forum Jump: