The SOLVR is one of my most used applications of the HP48.
I discovered the SOLVR after I tried Jack Levy's MathTools.
I think that many beginners like me aren't aware of the fast
SOLVR environment. One can solve very fast for any desired
variable of an equation.

Here is another version of a clean solver like the one in
MathTools, but doesn't need a cable to be transferred and
offers the ability to keep or to purge the SOLVR vars.
Another advantage of this user-rpl version is starting a little
bit faster then QSLV from MathTools and the CST menu does still
work (in MathTools it doesn't).


Description
***********

The SOLVR environment creates global variables. These vars are
often  unwanted after finishing the calculations.
To call the SOLVR and to *tell* it to purge the new created vars
after finishing the calculations you can use one of the following
tiny programs.
I have some different suggestions how the task could be fullfilled.
The first two are very small and start very fast, the last program
allows you to choose if you want to keep the vars or you want to purge
them. I personally would prefer the last solution, which needs 109.5
Bytes (without the program name) and starts still fast enough.


Installation
************

Transfer a program via ASCII-mode or type it in and store it under
an appropriate name like CSLR (Clean Solver) or something like that.
If you type the programs in you don't need the HEADER %%HP: T(3);
which tells the calc how to translate special characters. See Chapter
27 in the manual for further info.

Program
*******

%%HP: T(3);
\<< STEQ 30 MENU HALT RCEQ #353ABh SYSEVAL PURGE 0 MENU \>>

The program takes an equation from the stack and starts the SOLVR for 
this EQ.
Then you can solve for any desired value (see chapter 18 and look for 
SOLVR). After you've calculated all values just press CONT (LeftShift 
ON). The SOLVR-vars are purged automatic and the last menu is shown.

Warning: SYSEVAL's must be typed in exactly like shown. Otherwise 
SYSEVAL's can clear your mem. FINDVAR is an unsupported entry point,
but it has remained at #353ABh in all versions of the HP48 so far.

If you'd like to purge the reserved variable EQ too just add 'EQ' + in 
the program to add EQ to the list that will be purged:

%%HP: T(3);
\<< STEQ 30 MENU HALT RCEQ #353ABh SYSEVAL 'EQ' + PURGE 0 MENU \>>



As a last suggestion here's the most versatile and elegant solution.
This *ultimate* version adds a  CLR (CLEAR) soft menu to the SOLVR menu.
You don't have to press CONT here, because the program isn't HALTed,
but you can press CLR.
After finishing your calculations press CLR to purge the SOLVR vars
or just go on using the calc like you want to without pressing CLR.
Then you'll keep the SOLVR vars.


%%HP: T(3);
\<< DUP # 353ABh
SYSEVAL { { "CLR"
  \<< RCEQ EVAL DROP
# 353ABh SYSEVAL
PURGE 0 MENU
  \>> } } + 2 \->LIST
STEQ 30 MENU
\>>


Additional suggestions
**********************

You'll have a very handy SOLVR, if you assign the program to a key
or include it into your CST (custom) menu (Chapter 30 in the manual).
I have assigned the clean solver to the RightShifted SOLVE-key (key 7).
To do this you put the name of the program on the stack and type
62.3 ASN. Look in the manual if you'd like to assign CSLR (clean solvr)
to another key. You have to turn USER on, to use a key assignment.
If you'd like to add the program to your CST menu just create a list
{ } containing all commands and programs you want to include and type
MENU. This will create a variable named CST in the directory you're in,
containing this list. Press the CST key and voila!


Thanks to John H. Meyers for showing me the needed SYSEVAL and to
Christian Meland for remembering me that I could use user defined
SOLVR menus and many thanks to Eric Rechlin for mantaining the best
HP48 site: www.hpcalc.org!!!

10.11.98
Peter Karp
karpfenteich@gmx.de