summaryrefslogtreecommitdiff
path: root/75/DEPENDENCIES/aitken1.sce
blob: 3e50ad87df02bbbdc5b8c9c63590a27ddacc8387 (plain)
1
2
3
4
5
6
7
8
9
10
// this program is exclusively coded to perform one iteration of aitken method,

function x0aa=aitken(x0,x1,x2,g)
x0a=x0-(x1-x0)^2/(x2-2*x1+x0);
x1a=g(x0a);
x2a=g(x1a);
x0aa=x0a-(x1a-x0a)^2/(x2a-2*x1a+x0a);

endfunction