Talk:Steffensen's method
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)