How do you find 4-sd rounded approximation(s) to the solution(s) of #e^x-1/x=pi#?
1 Answer
Aug 12, 2017
Explanation:
Let:
#f(x) = e^x-1/x-pi#
Then:
#f'(x) = e^x+1/x^2#
Using Newton's method, then if we have an approximate zero
#a_(i+1) = a_i-(f(a_i))/(f'(a_i))#
#color(white)(a_(i+1)) = a_i-(e^(a_i)-1/a_i+pi)/(e^(a_i)+1/a_i^2)#
What to use as an initial approximation?
#f(1) = e-1-pi ~~ -1.42#
#f(2) = e^2-1/2-pi ~~ 3.75#
So roughly linearly interpolating, we can choose
Then:
#a_1 ~~ 1.35634086#
#a_2 ~~ 1.35564215#
#a_3 ~~ 1.35564198#
#a_4 ~~ 1.35564198#
This is not the only solution, putting