Question: PYTHON Implement the compute_root function. This function applies Newtons method of successive approximation as described above to find a root of the polynomial function. It
PYTHON
Implement the compute_root function. This function applies Newtons method of successive approximation as described above to find a root of the polynomial function. It takes in a tuple of numbers poly, an initial guess x_0, and an error bound epsilon. It returns a tuple. The first element is the root of the polynomial represented by poly; the second element is the number of iterations it took to get to that root.
The function starts at x_0. It then applies Newtons method. It ends when it finds a root x such that the absolute value of f(x) is less than epsilon, i.e. f(x) is close enough to zero. It returns the root it found as a float.
http://www.codesend.com/view/42cef11cbe6681ccdfb695588fe40579/
Any idea??
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
