HP 50g Solve on object?
|
04-29-2019, 04:41 PM
(This post was last modified: 04-30-2019 11:50 PM by Giuseppe Donnini.)
Post: #4
|
|||
|
|||
RE: HP 50g Solve on object?
I would rather rely on the good ol' HP-48 routines still present in the HP-50G, and use the ROOT command.
ROOT is the programmable form of HP Solve and takes the following arguments: +---------------+---------------------+------------------------------------------+ | Stack level 3 | 'alg' / << prog >> | 1. An algebraic expression or a program | | | | acting as the current equation. Note | | | | that the variable EQ is *not* used by | | | | ROOT. | | | | | | Stack level 2 | 'global' | 2. The name of the unknown. | | | | | | Stack level 1 | guess / {guesses} | 3. A number or a list of 1, 2, or 3 | | | | numbers acting as initial guess(es). | +---------------+---------------------+------------------------------------------+ Don't forget the third argument! In contrast to its interactive implementation, the programmable version of the root-finder requires you to supply an initial guess. (The HP Solve environment uses a default guess if you don't supply one, which is simply the current value of the unknown variable, if it already exists, or zero, if it doesn't [formal variable]). Note that ROOT only displays a message if an error occurs (Bad Guess(es) or Constant?). As it is not meant to be used interactively, it does not provide intrepretative messages when a root (or extremum) is actually found (Zero, Sign Reversal, or Extremum), nor does it allow you to monitor the root-finding process as during an HP Solve session. Applying this to your example, we get the following program: \<< @ Begin program \<< X 5 + \>> @ Current equation 'X' @ Unknown 0 @ Initial guess ROOT @ Call root-finder \>> @ End program Executing the program puts -5 on stack level 1, just as you wanted. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP 50g Solve on object? - iainiain32 - 04-29-2019, 09:22 AM
RE: HP 50g Solve on object? - grsbanks - 04-29-2019, 11:27 AM
RE: HP 50g Solve on object? - iainiain32 - 04-29-2019, 12:22 PM
RE: HP 50g Solve on object? - Gilles - 04-30-2019, 09:10 PM
RE: HP 50g Solve on object? - Giuseppe Donnini - 04-29-2019 04:41 PM
RE: HP 50g Solve on object? - iainiain32 - 04-30-2019, 04:02 PM
RE: HP 50g Solve on object? - Gilles - 04-30-2019, 07:47 PM
RE: HP 50g Solve on object? - Giuseppe Donnini - 04-30-2019, 08:14 PM
RE: HP 50g Solve on object? - Gilles - 04-30-2019, 09:18 PM
|
User(s) browsing this thread: 5 Guest(s)