Recommend root-finder for HP 67
|
11-29-2019, 06:19 PM
Post: #1
|
|||
|
|||
Recommend root-finder for HP 67
I don't particularly like the root finder from the HP 67 standard pac. I have to insert the program lines into the other code, and it gets stuck frequently it seems. Do you have a simple end elegant root finder that you would recommend? Thanks!
|
|||
11-30-2019, 03:08 AM
(This post was last modified: 11-30-2019 03:10 AM by Namir.)
Post: #2
|
|||
|
|||
RE: Recommend root-finder for HP 67
Here is the code for Newton's method for the HP-67:
Code: Memory Map Load the above program. Edit the code in LBL E to implement the function you want to find the root for. Then: 1) Enter the tolerance value. 2) Press Enter. 3) Enter the guess for the root. 4) Press the A key. 5) The program will display the intermediate guesses for the solution using a PAUSE statement. Then the program displays the refined guess for the root, based on the tolerance value supplied. You can calculate fx(x) values by entering a value for x and then pressing the E key. |
|||
11-30-2019, 04:44 AM
(This post was last modified: 11-30-2019 05:25 AM by Trond.)
Post: #3
|
|||
|
|||
RE: Recommend root-finder for HP 67
(11-30-2019 03:08 AM)Namir Wrote: Here is the code for Newton's method for the HP-67: Thanks! I am looking in vain for "RDN", do you mean "RND"? EDIT: ah, I guess it's "roll down" EDIT2: and "EXP" would be yX right? EDIT3: What needs to remain in "E"? Should it always start with LASTX, and then put my function behind that? |
|||
11-30-2019, 06:14 AM
Post: #4
|
|||
|
|||
RE: Recommend root-finder for HP 67
EXP is e^X.
LBL E ia the label you use to code f(x)=0. In my example, f(x)=e^x-3*x^2. You can start the code for f(x) by storing the value of x in an unused register, so you can reuse it to calculate x. I chose LASTX is recall X after calculate e^x. Namir |
|||
11-30-2019, 05:17 PM
Post: #5
|
|||
|
|||
RE: Recommend root-finder for HP 67
(11-30-2019 06:14 AM)Namir Wrote: EXP is e^X. Ah that makes sense. Sorry, I was a bit tired yesterday. And it works! Thank you very much! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)