HP48 programming: use values from stack in expression
|
12-01-2018, 05:05 AM
(This post was last modified: 12-06-2018 02:10 AM by Giuseppe Donnini.)
Post: #4
|
|||
|
|||
RE: HP48 programming: use values from stack in expression
SUBST is not an HP-48 command.
Thomas Klemm's solution works, but you would have to rewrite the program for every single function you want to apply. Here's a more general solution: 1. For single-argument functions (like SIN, square root, etc.): Code: @ F1 : ( x {f} --> f(x) ) 2. For two-argument functions (like +, -, etc.): Code: @ F2 : ( x y {f} --> f(x,y) ) Following the same pattern, programs for three or more argument functions can easily be added. Note that these programs respect the symbolic result flag -3: if clear (default), they return symbolic results; if set, they return numeric results. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP48 programming: use values from stack in expression - Beat - 11-30-2018, 02:47 PM
RE: HP48 programming: use values from stack in expression - Thomas Klemm - 11-30-2018, 09:14 PM
RE: HP48 programming: use values from stack in expression - SammysHP - 11-30-2018, 10:21 PM
RE: HP48 programming: use values from stack in expression - Giuseppe Donnini - 12-01-2018 05:05 AM
RE: HP48 programming: use values from stack in expression - SammysHP - 12-01-2018, 06:12 AM
RE: HP48 programming: use values from stack in expression - Thomas Klemm - 12-01-2018, 02:06 PM
RE: HP48 programming: use values from stack in expression - Beat - 12-02-2018, 11:03 AM
RE: HP48 programming: use values from stack in expression - Giuseppe Donnini - 12-04-2018, 02:44 AM
RE: HP48 programming: use values from stack in expression - Thomas Klemm - 12-05-2018, 04:11 AM
RE: HP48 programming: use values from stack in expression - Giuseppe Donnini - 12-05-2018, 03:49 PM
|
User(s) browsing this thread: 1 Guest(s)