[BUG] HP 50g SOLVE/SOLVR menu does not display unknown var
#1

Hello

I think I found a bug in the SOLVER application.
This bug is reproducible also in the HP 50g emulator.

My VERSION:

Version HP50-C

Revision #2.15

Copyright HP 2009

Description of the bug

1. Put an equation into the variable EQ (eg. COS(X)).

2. If the variable 'X' exists, purge it.

3. Enter the SOLVE/SOLVR menu.

At that point everything seems ok, the menu displaying two items: 'X' and 'EXPR='

4. Enter a real number into 'X' (ex: 2) and press 'EXPR='. You get -.4161...

5. Press the VAR key to return to your home directory. You see the 'X' variable created.

6. Return to the SOLVE/SOLVR menu. No problem, both items ('X' and 'EXPR=' are still visible)

7. Now enter the symbolic value '2*pi' (using the greek letter for pi) into 'X' and press 'EXPR='. You get 1.

8. Press the VAR key to return in you home directory.

9. Return back to the SOLVE/SOLVR menu.

SURPRISE!!! The 'X' variable is no more displayed and accessible...

If you want to have it displayed and accessible, you have to enter non symbolic value!

I guess it has been already noted by some... Anyone knows if this has been notified to HP?

Regards

François

Edited: 20 Sept 2011, 6:13 a.m.

#2

Bonjour François,

It's not a 'bug', it is a feature of the RPL solver.

The [ X ] disappear from the solver menu as soon as there no more adjustable variable in the expression.

If you store '2*PI*n' in variable 'X' instead of just '2*PI', you will see that [ X ] menu is replace by [ n ].
The solver menu only list variable, no constant of the stored EQ-expression.

Oppositely, if you store in the variable 'X' [... edited ...] a program (i.e. « 2 PI * » ) you will observe again that the [ x ] disappear from the solver menu.
If you PURGE the variable ‘X’, the [ X ] will immediately reappearing in the Solver menu.

In Hp-28C/S, the change fro [ x ] to [ n ] (or disappearance) is immediate, perhaps the 'bug' on HP-50g is due to display latency (or a missing refresh cycle is this case). Is that why you notice it only by swapping from and back to the solver menu?


Edited: 20 Sept 2011, 7:00 a.m. after one or more responses were posted

#3

Thanks C.Ret

Looks as a functionality, indeed :)

Nevertheless, if I store in the variable 'X' a non symbolic constant, the [X] appears well in the solvr menu...

It is only when I store symbolic constant that it does not appear.

Cheers

François

Edited: 20 Sept 2011, 6:33 a.m.

#4

Your right, I miss this point, using a constant, the [ x ] remain in the menu.

This is a trick I often used, to make physical or chemistry constant out of the solver menu, you simply have to enter the constant quote by « and ».

For example, suppose you have to investigate pressure and volume changes of a gas-phase reactor. Admitting your gas is considered as ideal, you may use the equation of state :

As soon as you enter this equation, [ P ][ V ][ n ][ R ][ T ] show up in the solver menu. As the gas constant R will not change and you will only consider change in pressure, volum and temperature. The trick is to store «8.314 » in ‘R’ so that you may input P, V, n and T in respectively Pa, m3, mol and °K. [ R ] disappear from the solver menu.

Storing ‘273.15+t’ in ‘T’ makes [ t ] to replace [ T ] in solver menu and allow you to use temperature in Celsius.



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime graphing bug BruceH 1 1,547 11-19-2013, 08:14 AM
Last Post: Joe Horn
  HP Prime - another cosmetic bug BruceH 3 1,774 11-12-2013, 02:18 PM
Last Post: Ken Shaw
  XCas / Prime "solve" question Nigel J Dowrick 4 2,138 11-08-2013, 04:01 AM
Last Post: Nigel J Dowrick
  [HP PRIME] small font bug display Damien 34 10,216 11-06-2013, 04:31 AM
Last Post: Nacho
  Prime: size display bug when editing large programs BruceH 2 1,391 10-31-2013, 05:30 PM
Last Post: BruceH
  Using the Prime to solve for eigenvalues Michael de Estrada 28 8,867 10-27-2013, 07:21 AM
Last Post: Tarcisi C
  HP PRIME Home settings var lack Damien 0 1,037 10-26-2013, 04:25 AM
Last Post: Damien
  HP Prime Define: Use with solve, etc. Helge Gabert 0 1,033 10-23-2013, 06:24 PM
Last Post: Helge Gabert
  What does the Send menu key in the Apps window do? John Colvin 3 1,674 10-23-2013, 10:56 AM
Last Post: Tim Wessman
  HP Prime Bug bluesun08 19 5,573 10-14-2013, 10:48 PM
Last Post: Han

Forum Jump: