✔ 最佳答案
We wanted to solve f(x) = x + tan(x) = 0 using the Newton's method.
First, we compute the derivative f'(x) = 1 + sec2(x).
Then we start the Newton's iteration by setting x0=2. Recall the Newton's iteration formula is xn=xn-1-f(x)/f(x0). We have
x0=2
x1=2.027314579
x2=2.028754298
x3=2.028757838
Therefore the first root, up to three place accuracy, is 2.029
For the second root, we do exactly the same thing starting with x0=5, so we haveWe have
x0=5
x1=4.879393859
x2=4.907699753
x3=4.91303811
x4=4.913180344
Therefore, the second root, up to three place accuracy, is 4.913.