Question: P 5 . Now write a PYTHON function to implement the secant method as shown: def secant ( func , x 0 , x 1

P5. Now write a PYTHON function to implement the secant method as shown:
def secant(func,x0,x1, es):
where x0,x1 are the two starting points.
a) Use the function to find roots of f(x)=x4+65x3+86x+128, accurate up to 4 significant digits. Report
their values.
b) Again make a plot of the above function to and mark all the roots.
c) Verify your solutions using the in-built PYTHON function roots, which is available in numpy.
P6. Utilizing the above functions, find the shortest distance between the curve y=x2+1 and the point (1,0).
Report the shortest distance. Which method converges faster, the false position or the secant method ?(report
the number of iterations in both cases).
P 5 . Now write a PYTHON function to implement

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!