07-03-2015, 11:15 PM
Hello all,
I've been trying to get the 35s to solve a program defined by a label but it just won't find any roots.
Would anybody be kind enough as to take a look at my codes?
This one calculates the derivative of a function using \(f'(x)=\frac{f(x+h)-f(x-h)}{2h}\)
This is the function being evaluated:
Basically, what I am trying to do is to find a local minimum by solving f'(x)=0, which in this case is 5/2.
FN = D
3
SOLVE D.
Very much appreciated.
Marcio
I've been trying to get the 35s to solve a program defined by a label but it just won't find any roots.
Would anybody be kind enough as to take a look at my codes?
This one calculates the derivative of a function using \(f'(x)=\frac{f(x+h)-f(x-h)}{2h}\)
Code:
LBL D
RCL D*
2E-3
STO H
-
XEQ F001
RCL D
RCL+ H
XEQ F001
REGZ
-
RCL H
2
*
/
RTN
This is the function being evaluated:
Code:
LBL F
STO X
X^2-5*X+6
RTN
Basically, what I am trying to do is to find a local minimum by solving f'(x)=0, which in this case is 5/2.
FN = D
3
SOLVE D.
Very much appreciated.
Marcio