50g group photo

Yahoo Groups archive

50g

Archive for 50g.

Index last updated: 2026-03-30 00:59 UTC

Thread

50g EVAL keyboard function

50g EVAL keyboard function

2012-02-20 by pin224466

I'm a new 50G user and have a question regarding the use of EVAL and how/where the function looks for variable substitution in the calculator.

1. While learning the calculator, I made a couple of simple named variables in the 'home' directory. The variables were named 'A' and 'D'. These variables were never deleted from my 'home' directory.

2. in the '50g users guide' on page 6-21 (this is the big 9MB guide HP part number F2229AA-90006), Example 3 "Flow in a Pipe", there is an exercise for inputing formulas with some portions of the equations existing in separate variables. One of the final steps of the exercise is to use the 'EVAL' keyboard function to combined the variables into a single equation.

3. I input the formulas using the names exactly as defined in the users guide in a SEPARATE directory as the exercise defines. The directory is called 'PIPES'.

4. One of the exercises variables is named 'A' and has, as part of it's equation a variable named 'D'.

Upon executing the 'EVAL function, the calculator showed an error.

After some thought, I realized that, even though the calculator was set to the 'PIPES' directory, and the primary equation that was being 'EVAL'd was in the 'PIPES' and all the variable based equations that were to be substituted into the primary equation were in the 'PIPES directory, the calculator was looking back into the 'home' directory and trying to substitue for the variable 'D' that existed there.

My question is this... how do you make the 50g focus on local named variables defined in a subdirectory for functions like 'EVAL', programs, etc.

I can't imagine having to remember every variable created and stored on this calculator so that when future programs are written, they won't mistakenly fill in the wrong information.

thanks....

Re: 50g EVAL keyboard function

2012-02-21 by nate.beers

I'd suggest downloading the HP-48 documentation.

Quick Start Guide
User's Guide
Advanced User's Reference Manual 

From Chapter 5 of the HP 48G Series User's Guide:

Where to Store Variables

When you evaluate a variable, the HP 48 searches the current directory for the name of the variable. If the name isn't there, the HP 48 searches up the path until it finds the variable or searches the HOME directory. Note that it will evaluate the first variable it finds with the designated name, which may or may not be the one you had in mind. This suggests several approaches to organizing your variables:

Put variables that you Want to access from any directory into the HOME directory

Put variables that you don't Want to be able to access from all directories into a
directory not on the current path.

You can use duplicate variable names, as long as they are not in the same directory.


To create the variable A in the PIPES directory, you need to place the following on the stack and press the STO key.  (Note that A is enclosed in single quotes)



Pressing the A softkey in the PIPES directory will place the formula on the stack.  Pressing the EVAL key will evaluate the formula using whatever contenet you have stored in the variable D that is in the HOME directory.

Re: 50g EVAL keyboard function

2012-02-21 by nate.beers

corrected text:

When you evaluate a variable, the HP 48 searches the current directory for the name of the variable. If the name isn't there, the HP 48 searches up the path until it finds the variable or searches the HOME directory. Note that it will evaluate the first variable it finds with the designated name, which may or may not be the one you had in mind. This suggests several approaches to organizing your variables:

Re: 50g EVAL keyboard function

2012-02-22 by pin224466

thanks for the info !

local variables vs. global variables.... what a concept....very simple when explained.

Peculiar, I have spent the past couple of hours performing searches for a similar reference in the 50g user guide, advanced user manual, and users manual and have not been able to find anything.

I'm sure there is a logical extension of the info you provided with regard to the 50g SD memory card; however, it would be nice to see the rules/requirements in writing.



--- In 50g@yahoogroups.com, "nate.beers" <natebeers@...> wrote:
>
> I'd suggest downloading the HP-48 documentation.
>
> Quick Start Guide <http://www.hpcalc.org/details.php?id=6402>
> User's Guide <http://www.hpcalc.org/details.php?id=3937>
> Advanced User's Reference Manual
> <http://www.hpcalc.org/details.php?id=6036>
>
> From Chapter 5 of the HP 48G Series User's Guide:
>
> Where to Store Variables
>
> When you evaluate a variable, the HP 48 searches the current directory
> for the name of the variable. If the name isn't there, the HP 48
> searches up the path until it finds the variable or searches the
> HOME directory. Note that it will evaluate the first variable it
> finds with the designated name, which may or may not be the one you
> had in mind. This suggests several approaches to organizing your
> variables:
>
> Put variables that you Want to access from any directory into the HOME
> directory
>
> Put variables that you don't Want to be able to access from all
> directories into a
> directory not on the current path.
>
> You can use duplicate variable names, as long as they are not in the
> same directory.
>
> To create the variable A in the PIPES directory, you need to place the
> following on the stack and press the STO key. (Note that A is enclosed
> in single quotes)
>
>
>
> Pressing the A softkey in the PIPES directory will place the formula on
> the stack. Pressing the EVAL key will evaluate the formula using
> whatever contenet you have stored in the variable D that is in the HOME
> directory.
>

Re: 50g EVAL keyboard function

2012-02-24 by vjwolf3@sbcglobal.net

You will find that the manuals are not well written and there are error's in the manual as well as lacking in proper explanation as you have experienced, this is a problem which HP should have resolved before writing the manual and marketing the 50G.

If HP had a well written manaul with proper explanation and did not have a problem with software as I have experienced then TI would probably drop its calculator line.

As yet I have my 50G but there are problems in running the app located in the HP sofware archive.



As you will also find

--- In 50g@yahoogroups.com, "pin224466" <pin224466@...> wrote:
>
> thanks for the info !
>
> local variables vs. global variables.... what a concept....very simple when explained.
>
> Peculiar, I have spent the past couple of hours performing searches for a similar reference in the 50g user guide, advanced user manual, and users manual and have not been able to find anything.
>
> I'm sure there is a logical extension of the info you provided with regard to the 50g SD memory card; however, it would be nice to see the rules/requirements in writing.
>
>
>
> --- In 50g@yahoogroups.com, "nate.beers" <natebeers@> wrote:
> >
> > I'd suggest downloading the HP-48 documentation.
> >
> > Quick Start Guide <http://www.hpcalc.org/details.php?id=6402>
> > User's Guide <http://www.hpcalc.org/details.php?id=3937>
> > Advanced User's Reference Manual
> > <http://www.hpcalc.org/details.php?id=6036>
> >
> > From Chapter 5 of the HP 48G Series User's Guide:
> >
> > Where to Store Variables
> >
> > When you evaluate a variable, the HP 48 searches the current directory
> > for the name of the variable. If the name isn't there, the HP 48
> > searches up the path until it finds the variable or searches the
> > HOME directory. Note that it will evaluate the first variable it
> > finds with the designated name, which may or may not be the one you
> > had in mind. This suggests several approaches to organizing your
> > variables:
> >
> > Put variables that you Want to access from any directory into the HOME
> > directory
> >
> > Put variables that you don't Want to be able to access from all
> > directories into a
> > directory not on the current path.
> >
> > You can use duplicate variable names, as long as they are not in the
> > same directory.
> >
> > To create the variable A in the PIPES directory, you need to place the
> > following on the stack and press the STO key. (Note that A is enclosed
> > in single quotes)
> >
> >
> >
> > Pressing the A softkey in the PIPES directory will place the formula on
> > the stack. Pressing the EVAL key will evaluate the formula using
> > whatever contenet you have stored in the variable D that is in the HOME
> > directory.
> >
>