Post Reply 
[HP 35s] Finding the minimum of a FCN
07-03-2015, 11:15 PM (This post was last modified: 07-04-2015 01:29 PM by Marcio.)
Post: #1
[HP 35s] Finding the minimum of a FCN
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}\)
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[HP 35s] Finding the minimum of a FCN - Marcio - 07-03-2015 11:15 PM



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