:Զ

ʽ:
[x,er,L,M]=SolveRootIteration(f,x,x0,N,Error)
[x,er,L,M]=SolveRootIteration(f,x,x0,N)
[x,er,L,M]=SolveRootIteration(f,x,x0)
[x,er,L,M]=SolveRootIteration(f,x)
[x,er,L,M]=SolveRootIteration(f)

f:洢ʽַ,ÿʽԶŷָ
x:洢Ƶַ,ÿԶŷָĬΪx
x0:Ӧxĳʼֵ,ΪֵҲΪ,ĬϳԶֵ
N:
Error:Ƶ

x:ڵҵһ
er:Ӧĵ
L:ֵʱĵ
M:ܹ

ע:ֶ֧,ÿxıfеıʽӦһ

:

֪, x^3 - x -1 =0Ҫһ,ԼһֱΪ 
    x = x - (x^3 - x - 1)/(3*x^2 - 1)
   ʹñµسõ

f="x-(x^3-x-1)/(3*x^2-1)";
[x,er,L,M]=SolveRootIteration(f)//سõ½
x =
[ 1.32471795724475 ]
er =
[ 1.9281421223E-17 ]
l =
[ 3.00000000000000 ]
m =
[ 3.00000000000000 ]
