Question: Im having issues with my python program. It wont display an answer. I want to perform the bisection method and show roots as well as

Im having issues with my python program. It wont display an answer. I want to perform the bisection method and show roots as well as show answer on a graph. I have no idea why it is not working. Thank you in advance. def f(x): return x**3 + 1 def bisection (a,b,tol): xl = a xr = b while(np.abs(xl-xr))=tol: c=(xl+xr)/2.0 prod=f(xl)*f(c) if prod>tol: xl=c else prod
                                            

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 Databases Questions!