Question: Manually, using bi - section method, find the root of equation 2 x 3 + 4 x + 1 5 = 0 between 2 and
Manually, using bisection method, find the root of equation x
x between and Do maximum iterations and use the final solution to estimate the
residual.
b Make a generic program to estimate the root and final residual value of function of any function
using bisection method. The function estimation for a specific function can be done using a python
subroutine function while the generic bisection method should be implemented in a separate function.
Someone else should be able to use the program by simply writing few lines for evaluating their function
choice for which they want the root without having to do any other major code changes. Keep running
the program till the following condition is satisfied:
xrnew xrold
Use this program to find the solution of function described in part a Use the same initial guess bracket.
You can also verify the solution with python libraries scipy.optimize.root or scipy.optimize.
brentq
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
