Question: def newton ( func , x 0 , ftol = 1 e - 1 2 , xtola = 1 e - 7 , maxiter =
def newtonfunc x ftole xtolae maxiter:
func is a Python function that takes in and returns and in that order.
For example
f df func
is an initial guess for the root.
ftol is tol in Criterion xtola is tol in Criterion
maxiter is the maximum number of iterations allowed.
Use a while loop in the function, and return both the estimated root and the
number of iterations used in the while loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
