Third Order Convergence for Square Roots Using Newton's Method
|
09-16-2021, 07:45 PM
(This post was last modified: 09-16-2021 07:48 PM by C.Ret.)
Post: #11
|
|||
|
|||
RE: Third Order Convergence for Square Roots Using Newton's Method
(08-28-2019 07:32 PM)bshoring Wrote: Could we have an example of this in RPN, say for HP-67? You are welcome. Here is a code with three sub-routines that compute square root using the first three methods respectively:
Code: 001 31 25 11 f LBL A 010 31 25 12 f LBL B 024 31 25 13 f LBL C These programs only run one step of each method. The value n for the expected square root have to be store in register R0 and the first guest or estimate has to be set in register X: of the stack. Each press on A, B or C key affine the estimation displayed in register X: by one step using the corresponding method. For example : 51 STO 0 7 A display 7.142857145 Further press on A display 7.141428570, 7.141428430, 7.141428430, ... where 7 B, B, B, ... successively display 7.141414140, 7.141428423, ... and 7 C, C, C, ... successively display 7.141414141, 7.141428429, 7.141428428, ... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 11 Guest(s)