The following warnings occurred:
Warning [2] Undefined array key 102091 - 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 102101 - 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 102102 - 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 102115 - 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 102116 - 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 102189 - 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 102189 - 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 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 array key 102115 - 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





42S: use of VARMENU ?



#7

I'm trying to figure out the programming of a 42S, especially the solver. I am a native 41C speaker.

I see that the solver can use the MVAR command, which I understand, but one program I found has the VARMENU command, but I can't tell what it does. I guess it goes without saying that I don't have the manual.

Also, is there a simple way to have a solver program to show the same basic value of something in three (or more) different units? A simple example would be meters, feet, and miles. I'd like to use the solver to have three menu items, and could enter '1000', hit M, then hit FT and have it give me the value 3.3, then hit MI and have it give me the value 0.001 (or whatever). I know that the solver on my 200LX has the S() function, which you can test which variable you're solving for. Any equivalent?

thanks


#8

Hi, Curtis;

VARMENU works together with a MVAR "variable_name" sequence. Once you define the MVAR (Menu VARiables) with a MVAR sequence, VARMENU actually creates a VARiable MENU that contains the many MVAR variables. Consider that MVAR 'declares' the variables that will be used in the progrma. An important notice: the MVAR 'declaration' sequence must be the first thing after the first glogal label in the program (I am not sure if you can have spare lines before the first global label in this case...). Consider the following sequence:

LBL "TST"
MVAR "V01"
MVAR "V02"
MVAR "V03"
VARMENU (after Karl's post, I realised I missed the "TST" here)
STOP
(remaining program lines)
After runing this program, a menu containing three custom labels is shown. You can key in each of their values and press the corresponding menu key, than you press R/S so the program resumes. It is a common procedure to add an EXITALL after the STOP in order to 'close' the variables menu created by VARMENU so the display returns to regular stack presentation. (p.125 of the Brazilian HP42S User's Manual)

Hope this helps.

Luiz (Brazil)

Edited: 7 Nov 2006, 12:20 a.m.


#9

You can key in each of their values and press the corresponding menu key, than you press R/S so the program resumes.

When you press two menu keys in sequence, the program also resumes; the name of the second menu key is stored in the ALPHA register.


You can use this behavior to emulate the behavior of the solver, for instance. To see a practical example, take a look at my version of the DPLOT program (at http://home.planet.nl/~demun000/thomas_projects/free42/42progs/).


Also, the HP-42S manual and the Programming Examples & Techniques book document these advanced programming constructs very well (the PE&T book has very elaborate examples, but the manual is pretty good all by itself). If you really want to get into this, getting the HP Museum CD/DVD is money well spent.

- Thomas


#10

Hi, Thomas;

thank you for pointing this feature out. I must confess I do not remember reading about it, neither have used the variables menu this way. Always learning a bit more... 8^)

And about the HP42S PE&T (fancy!), I am one of the lucky ones who got the chance to buy an original print from Good-old-days EduCalc, along with a (small) bunch of other good books: Wickes "HP48 Insights", V1 and V2 (S-series only),
Mathews & Eidswick's 'HP48G Calculus Companion' (good stuff!), Grapevine's 'An Easy Course in Using the HP42S' (and the HP48 related title), and a few others. I keep these in the best shape possible, but I like to have a look at them one time and another. Not so very often, as you see...

Cheers and thanks again.

Luiz (Brazil)


Edited: 8 Nov 2006, 11:23 p.m.

#11

Greetings, Curtis --

Quote:
I see that the solver can use the MVAR command, which I understand, but one program I found has the VARMENU command, but I can't tell what it does. I guess it goes without saying that I don't have the manual.

VARMENU "PROG" displays a menu of variables defined with MVAR immediately following the external label "PROG". (The SOLVE and INTEG functions essentially do an automatic VARMENU.)

Quote:
Also, is there a simple way to have a solver program to show the same basic value of something in three (or more) different units?

Hmm, it becomes difficult using an equation of three or more variables when solving for one variable based on another, because all the "uninvolved" variables would need to be zeroed out. I don't see a simple solution.

In addition to VARMENU, there is also the Programmable Menu, described on pp. 145-148 of the HP-42S Owner's Manual (a scan of which can be purchased for a nominal price on CD or DVD from the MoHPC website).

I've written an application program for the HP-42S that utilizes both VARMENU and the Programmable Menu. I use the program occasionally, but don't plan to distribute it. The application program is just too complicated, not fully intuitive, and hard to document. There are better platforms for such an application than the HP-42S.

-- KS


Edited: 7 Nov 2006, 12:02 a.m.


#12

Thanks, guys. What I think I was missing, is that I was accessing my program from the Solver anyway, so I don't think the VARMENU command does anything in that case. Sounds like it is useful if you're wanting the Solver functionality but have run the program as an ordinary program.


Possibly Related Threads…
Thread Author Replies Views Last Post
  42s questions and 42s vs 35s snaggs 13 5,189 09-19-2011, 02:44 AM
Last Post: snaggs

Forum Jump: