There are no standard function, so I tried to do
by this way: but then iterations are not printed on each step HELP;(
step[f_, iter_, {a_, b_}] :=
Module[{inter = Interval[{a, b}],x =(a+b)/2},
Print["Iteration ", iter, ".\n", "Interval is: ", inter,";\nIntervalsWidth=",b-a,
"; \nx0_=", x, "; \nf(x0_)=", f[x], "; \nf'(interval)=", f',
";","\nX1=",IntervalIntersection[inter, x - (f[x])/(f')]]; IntervalIntersection[inter, x - (f[x])/(f')]]
newton[f_, {a_, b_}, eps_] :=
Module[{iter = 0},
N@Mean@First@(List @@
NestWhile[(++iter; step[f, iter, #]) &, {a,b},
Abs[b-a] > eps &])];
f[x_] := x*x - 8*x + 7 ;
newton[f, {5, 17}, 0.00001];