This code works fine.
Clear["Global`*"]
f[x_] = x^3 + 2 x^2 - 2;
Plot[f[x], {x, -2, 4}]
guess = 1.4;
iter = 10;
n = Table[j, {j, 0, iter}];
xn = NestList[# - f[#]/f'[#] &, guess, iter];
Grid[Transpose[{n, xn}], Frame -> All]
But when I add NumberForm suddenly Transpose doesn't work anymore. I have no clue why this is and how to fix it. Any ideas?
This is the code with NumberForm.
Clear["Global`*"]
f[x_] = x^3 + 2 x^2 - 2;
Plot[f[x], {x, -2, 4}]
guess = 1.4;
iter = 10;
n = Table[j, {j, 0, iter}];
xn = NumberForm[NestList[# - f[#]/f'[#] &, guess, iter], {∞, 10}];
Grid[Transpose[{n, xn}], Frame -> All]