The following warnings occurred:
Warning [2] Undefined array key 145215 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 145219 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 145234 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 145234 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP 20b: and ANS (or CHS and LASTx)



#2

Hi, Thomas --

(NOTE: Again, some strange glitch in HTML, MoHPC Forum software, or my web browser prevents me from responding directly.)

Thanks for bringing this up. I haven't experimented much with the HP-20b since receving one, nor have I perused the Learning Modules.

It seems that "ANS" serves as "LASTx" in RPN mode. Indeed, the crux of the error is that the "+/-" operation replaces what had been available before, unlike traditional "LASTx", which did not replace the L-register, because another "+/-" or "CHS" could undo it.

Since I don't see "x< >y" or "SWAP" on the HP-20b (I'm sure it's hidden somewhere), I'll exploit commutativity of addition:

3.4567 [shift][sqrt][shift][ANS][shift][1/x][shift][ANS][shift][LN] 2[*][-][+/-][+]

This uses the same number of keystrokes.

Traditional RPN:

3.4567 [ENTER][ENTER][sqrt][x<>y][LN] 2 [*][+][x<>y][1/x][-]

(This omits any necessary shift keys.)

-- KS


Edited: 26 Dec 2008, 7:21 p.m.


#3

Quote:
I'm sure it's hidden somewhere

)x

Quote:
3.4567 [shift][sqrt][shift][ANS][shift][1/x][shift][ANS][shift][LN] 2[*][-][+/-][+]

This can still be improved by one keystroke:

3.4567
[shift][sqrt]
[shift][ANS]
[shift][1/x]
2
[shift][ANS]
[shift][LN]
[*]
[-]
[-]

#4

Ah! Those cris-crossing arrows represent the "exchange/swap" operation; I thought it was a pair of scissors for cut-and-paste. Actually, it's clever to use a pair of keys for double-duty: parentheses for algebraic; roll_down and exchange for RPN.

So, I guess "ANS" retains the result of the previous calculation, explaining why "+/-" changes the result of ANS, but entering new data ("2" in your example) does not -- at least, until another operation is completed. ANS is therefore not a direct replacement for LASTx.

The "Traditional RPN" method also takes 13 keystrokes on the HP-20b after entering the value of x:

3.4567 
ENTER ENTER
shift sqrt
)x
shift LN
2
*
+
)x
1/x
-

-- KS


Edited: 27 Dec 2008, 3:09 a.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP-80 CHS Exponent Curiosity Max Stone 4 1,831 10-22-2013, 02:39 PM
Last Post: Max Stone
  HP's thinking behind the 20b/30b? John Ioannidis 3 1,624 09-07-2013, 10:21 AM
Last Post: Tim Wessman
  20b, 30b not in HP's web store Eric Smith 3 1,442 02-08-2013, 11:52 AM
Last Post: Walter B
  A non 20b/30b 34S Matt Agajanian 22 5,090 08-20-2012, 01:06 AM
Last Post: Reth
  [WP-34s] IR conversion of 20b Alexander Oestert 3 1,503 05-18-2012, 05:38 PM
Last Post: Harald
  LASTx for the 35 Matt Agajanian 3 1,333 03-23-2012, 03:29 AM
Last Post: Massimo Gnerucci (Italy)
  WP 34S - INC X and RCL L (LASTx) Gerson W. Barbosa 10 2,468 12-26-2011, 05:33 PM
Last Post: Paul Dale
  Why hp-20b more expensive than 30b? Masaki Adachi 9 2,855 10-14-2011, 12:08 PM
Last Post: megarat
  missing segments on 20b running 34s db (martinez, ca.) 4 1,615 10-05-2011, 01:27 AM
Last Post: Walter B
  Flashing HP 20b for WP 34S Steve Brenton 10 2,638 09-30-2011, 09:03 AM
Last Post: Marcus von Cube, Germany

Forum Jump: