Question: Manually, using bi - section method, find the root of equation 2 x 3 + 4 x + 1 5 = 0 between 2 and

Manually, using bi-section method, find the root of equation 2x
3+
4x +15=0 between 2 and 3. Do maximum 4 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
sub-routine function while the generic bi-section 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:
|xr,new xr,old|<=106
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!