Post Reply 
HP 42S Question
02-03-2019, 08:17 PM
Post: #1
HP 42S Question
I use a neat program for finding extremums by solving to find when d/dx=0. The derivative program goes like this

LBL "DX"
MVAR "X"
MVAR "H"
RCL "X"
RCL "H"
COMPLEX
XEQ "FX"
COMPLEX
END

This works in solve for most routine functions ("FX"). I am having a problem with a more complicated function, where the program for the function ("FX") executes successfully, but my derivative function ("DX") will not work in solve (generates an "invalid type" error).

An example is the following program "(FX") which executes successfully, but not in the solver in program "DX"

LBL "FX"
ENTER
ENTER
ENTER
X^2
5
-
X<0?
+/-
SQRT
END

Is there a way to handle this sort of thing where the DX program can work in solve?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 42S Question - lrdheat - 02-03-2019 08:17 PM
RE: HP 42S Question - lrdheat - 02-03-2019, 08:18 PM
RE: HP 42S Question - Thomas Okken - 02-03-2019, 09:38 PM
RE: HP 42S Question - lrdheat - 02-03-2019, 10:02 PM
RE: HP 42S Question - Thomas Okken - 02-03-2019, 10:11 PM
RE: HP 42S Question - Thomas Klemm - 02-04-2019, 05:47 AM
RE: HP 42S Question - lrdheat - 02-04-2019, 03:07 PM
RE: HP 42S Question - SammysHP - 02-04-2019, 05:39 PM
RE: HP 42S Question - lrdheat - 02-05-2019, 06:15 AM



User(s) browsing this thread: 1 Guest(s)