in step 2 it’s Xn - f(Xn)/f’(Xn) not with a plus sign...
consider checking the computation in your video, it seems very unlikely that if X0=1.00000 then X1=1.49751... ( spoiler alert, it should be X1=1.5 ...)
In fact one can show that the numbers that you get from this method (with X0=1) are (some of the ) convergents of sqrt(2) ( namely 3/2, 17/12, 577/408, etc...) and moreover that a_n/b_n is one of those convergent if and only if (a_n,b_n) is a solution of the Pell equation x2 - 2y2 = 1
164
u/Aravindh_Vasu Mar 09 '20 edited Mar 09 '20
Newton's algorithm for numerically finding the root of a given number.
Make a initial guess (the closer it is, faster it converges)
Use Xn+1=Xn- f(Xn)/f'(Xn) to find the next value closer to the original value.
Repeat 2, desired number of times, to obtain more accuracy.
Do consider checking out, TheRookieNerds :)