HP Forums

Full Version: Can I use long(er) variable names?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Howdy,

How do I use variable names like "FOCAL" or "RATIO"? When I tried this I get F*O*C*A*L?
Hi.

I assume you want to create user variables in HOME mode. Use something like this:

Code:
3.14â–¶RATIO

Then there will be a message box asking if you want to create said variable.

If you try to use these all caps var names without declaring first, the Prime interprets it as implied multiplication.
Thanks for you reply. That cleans things up a little.
Can I do this: RATIO = FOCAL/DIAMETER


David
Once you created you variables FOCAL and DIAMETER:

RATIO:=FOCAL/DIAMETER will define a variable and assign a value for it, without being updated each time you change FOCAL or DIAMETER.
You can create a function (shift Define) named RATIO and give the expression FOCAL/DIAMETER in the function field. Then uncheck the two checkboxes and now in home you can use RATIO, it will be updated each time you modify FOCAL or DIAMETER.

If you need to solve one of the three values knowing two of them, delete your previous RATIO function, create a variable named RATIO, then use the Solver App with the expression RATIO=FOCAL/DIAMETER
Thanks to both of you. Both replies are helpful.
Reference URL's