(71B) Bisection Plus for the HP-71B
|
01-12-2014, 05:44 PM
(This post was last modified: 06-15-2017 01:37 PM by Gene.)
Post: #1
|
|||
|
|||
(71B) Bisection Plus for the HP-71B
This program implements the new Bisection Plus algorithm for the HP-Prime. Click here to download a pdf file that discusses the new algorithm.
I have attached a ZIP file that contains the program for the Windows HP-71B emulator. Algorithm Code: Given f(x)=0, the root-bracketing interval [A,B], and the tolerance for the root of f(x): HP-71B Implementation Code: 10 REM BISECTION PLUS Usage 1. Press [RUN]. The program prompts you to enter the the value of A. 2. Key in the value of A and press [ENTER]. The program prompts you to enter the the value of B. 3. Key in the value of B and press [ENTER]. The program prompts you to enter the the value for the tolerance. 4. Key in the value for the tolerance and press [ENTER]. 5. The program displays intermediate refinement for the guess. When it converges the program displays "ROOT=" followed by the root value. 6. Press [CONT]. The program displays the number of iterations. Example Find the root for f(x)=exp(x)-3*X^2 in the range [3, 4]. 1. Press [RUN]. The program prompts you to enter the the value of A. 2. Key in 3 and press [ENTER]. The program prompts you to enter the the value of B. 3. Key in 4 and press [ENTER]. The program prompts you to enter the the value for the tolerance. 4. Key in 1E-8 and press [ENTER]. 5. The program displays intermediate refinement for the guess. When it converges the program displays "ROOT=3.73308". 6. Press [CONT]. The program displays the number of iterations as "ITER=7". Customization Line 30 contains the definition of f(X). Edit this line to reflect your function. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(71B) Bisection Plus for the HP-71B - Namir - 01-12-2014 05:44 PM
RE: (71B) Bisection Plus for the HP-71B - C.Ret - 06-11-2021, 06:37 PM
|
User(s) browsing this thread: 1 Guest(s)