Small Solver Program
|
02-15-2019, 06:26 PM
Post: #5
|
|||
|
|||
RE: Small Solver Program
(02-15-2019 12:07 AM)Albert Chan Wrote: It would be nice if we can temper the oscillation, or slow convergence. We can also use Aitken's delta-squared process to accelerate the speed of convergence: \(a_{n}=x_{n+2}-\frac {(x_{n+2}-x_{n+1})^{2}}{(x_{n+2}-x_{n+1})-(x_{n+1}-x_{n})}\) This leads to the following program for the HP-11C: Code: 001-42,21, 1 : ▸LBL 01 Example: Solve: \(x^x=1000\) 1000 LN STO 0 4.6 GSB 1 4.555665779 R/S 4.555535706 R/S 4.555535705 R/S Error 0 Feel free to add a check for 0 after line 13 to prevent the error and loop back to label 1 instead of returning in line 19. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)