The following warnings occurred:
Warning [2] Undefined array key 62847 - 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 62847 - 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 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





17BII and 19BII indefinite loops ?



#2

Hi all,
I am now diving into the joy of programming the 17BII and 19BII. I discovered the L() and G() functions and what they can bring: (almost) true programmability ! using syntax like 0*L(...)+... allows true instructions steps, multiple equations, and true definite loops which do more than just adding, with the 'sum' function. That's great for a formula-based language. It does not have the power of RPL, but it is cute and well suited to finance people. No wonder why the 17BII and 19BII were hugely succesful, almost as much than the 12C... Btw, it is a shame that HP removed these functions from the 17BII+. They removed what made the power of these calculators, and replaced it by a nice to have, but easy to program, currency converter, 4x the memory which nobody is likely to ever use, a crappy keyboard. The only positive thing I can think of for this machine is the nice, more readable, display... Let's call it the HP-17BII- !!

Anyway, I was wondering a few things about the 17BII/19BII world:

1/Is there a way to do indefinite loops, i.e. to break a loop when the number of times to loop is not known a priori? This would be the equivalent of the WHILE/REPEAT structures in a high-level programmming language, and this is extremely useful. I tried to use L(I:N) to set the counter to the maximum value within the loop, in order to break it early, but this does not work. It seems that the calc is treating this 'I' as a new variable, and not as the counter. Any idea ? This feature is the only programming feature that a Casio FC-200 or a 12C can do, that the 17BII/19BII cannot do...

2/Is there a way to uset the S() function to have 'subroutines', i.e. to force the solver to call an equation with different parameters, automatically, without user input ? I tried to use something like 'IF(S(F):L(F:SQ(X)):0*L(X:2)+G(F)+0*L(X:3)+G(F))' to 'call' the 'F' function (X^2) on '2' and then '3' arguments to get their sum, but this just failed.

3/Is there any reason why the 19BII has the built-in TVM functions (PV, PMT, FV, I, N) accessible from the solver, while the 17BII can't ?? This would be useful for some financial programming.

Anyway, long live the L() and G() functions, and let's wish HP will bring them back in a real 17BII+...

Cheers,

Vincent


Possibly Related Threads…
Thread Author Replies Views Last Post
  Solver issue with HP 17BII - different from 19BII Jeff Kearns 13 4,472 11-28-2013, 02:36 AM
Last Post: Don Shepherd
  17BII & 17BII+ Discounted Payback Period Revisited Tom Neudorfl 8 2,808 11-25-2013, 10:28 AM
Last Post: Don Shepherd
  Loops in Prime Geoff Quickfall 4 1,536 10-02-2013, 10:45 AM
Last Post: Geoff Quickfall
  39gii Tutorial: FOR loops is posted Eddie W. Shore 0 950 03-16-2013, 12:13 PM
Last Post: Eddie W. Shore
  Why is the 19BII faster than the 17BII(+)? Timo Labrenz 8 2,720 05-03-2012, 08:00 AM
Last Post: Xerxes
  HP 19Bii Market Value Celso Lima 1 1,041 04-18-2012, 05:39 AM
Last Post: Don Shepherd
  19BII replacement recommendations/decision making help needed Timo Labrenz 20 4,786 03-28-2012, 12:24 PM
Last Post: Timo Labrenz
  Using loops and SOLVE together Matt Agajanian 5 1,623 03-25-2012, 09:02 PM
Last Post: bill platt
  17BII+ vs 19BII Business Consulatant II Jeff Kearns 18 4,651 01-06-2012, 08:52 PM
Last Post: Raymond Del Tondo
  Loops of Addition benchmark for the 41CL Monte Dalrymple 8 1,975 08-19-2010, 09:48 PM
Last Post: Wlodek Mier-Jedrzejowicz

Forum Jump: