HP Forums

Full Version: HP49-HP50: list of var in an equation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have, in the stack of the calculator, for instance the following equation (all the variables are with power of 1, but their coefficient being not necessarily integers):

'2.55*x1 + 19.07*b + 11*c1 - 50.333*d = k'.

My question: Is there a COMMAND or an easy way to get the list of the variables in the above equation (as the calculator detect those variables when executing STEQ 30 MENU)?

I checked, but could not solve this easy problem.

Just for infornation:
I try to copy a system of linear in equations from a book into the calculator.
I have to detect the variables and, afterwards, the coefficients of those variables (the latter question is easily solved by setting 1 variable to 1 and the remaining ones to 0).

Regards,
Gil
Try LNAME. It returns its result as an array, which can easily be converted to a list with AXL.

The Advanced Users Reference shows more details about LNAME and how it differs from LVAR, which provides a different take on the variables.
Thanks, David, "your" LNAME command is the one I was looking for.

By the way, is there a built-in command or an easy way to get the coefficient of
Y='2.5*x + 7.5*b + 35* c'

apart evaluating Y for
(x=1, b and b = 0)
(b=0, x and c = 0)
(c=1, a and b = 0)?

Regards,
Gil
Reference URL's
• HP Forums: https://www.hpmuseum.org/forum/index.php
• :