Nicholas T. answered 04/10/22
Computer Engineering Graduate
https://en.wikipedia.org/wiki/Newton%27s_method
The program will work as follows,
- Ask the user for a number, store this in an integer variable S
- Solve equation x^2 - S = 0 using Newton's method
- f(x) = x^2 - S and f'(x) = 2x, x_{n+1} = x_n - f(x_n)/f'(x_n)
- We specifically choose the seed value x0 = S/2 as defined in item 3 in the instructions
- We iterate through Newton's method 9 times to get x1 through x9