Question: ( with python ) Your homework is to write a program, which will find a root of function that taken from user with input method
with python Your homework is to write a program, which will find a root of function that taken from user with input method by using FixedPoint Iteration Method.
This method is a iterative process for finding an approximation to a root of a function by repeatedly applying a transformation of that function, starting from an initial guess, until the process converges to a fixed point. You should get x Fx and max iteration number and tolerance from user But program should find gx itself.
Your program should use the following inputs:
fx: The function to find its root
x: The initial guess for iterative process
tol: A value, which is very close to zero, to stop the iterations
maxiter: The maximum number of iterations
Your program should satisfy the following requirements:
To find the transformed function for fx xgx
To converge to a root with iterations xngxn
To stop if fxnmaxiter
To have a visual representation of the iterative process, like an animation on a plot
To get the inputs as JSON and response as JSON, so run as an API
To have an independent GUI to use this API
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
