Talk:Steffensen's method: Difference between revisions
Content added Content deleted
(Question) |
(Additional note) |
||
Line 18: | Line 18: | ||
I was just wondering if that should be <code>iter <= maciter</code> (or <code>var iter : int = 0</code>) in the while loop?<br> |
I was just wondering if that should be <code>iter <= maciter</code> (or <code>var iter : int = 0</code>) in the while loop?<br> |
||
Or am I missing something? |
Or am I missing something? |
||
The results appear unaffected either way (to 6 decimal places) |
|||
--[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 21:47, 5 June 2023 (UTC) |
--[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 21:47, 5 June 2023 (UTC) |
Revision as of 21:48, 5 June 2023
Max iterations
In the ATS and RATFOR samples and most of the others derived from them, the loop in the steffensen_aitken method appears to run from 1 to maxiter - 1
E.g., in the ATS sample:
... var iter : int = 1 (* iteration counter *) in while (abs (p - p0) > tol andalso iter < maxiter) begin p0 := p; p := aitken (f, p0); iter := iter + 1 end; ...
I was just wondering if that should be iter <= maciter
(or var iter : int = 0
) in the while loop?
Or am I missing something?
The results appear unaffected either way (to 6 decimal places)
--Tigerofdarkness (talk) 21:47, 5 June 2023 (UTC)