Source code
a. Write separate Matlab functions for the bisection method, Newton's method, and the Secant
method.
These functions should be written so that they can be called in Matlab by typing:
[x,numIters]=Bisection(f,a,b,tol,maxIts)
[x,numIters]=Newton(f,df,x0,tol,maxIts)
[x,numIters]=Secant(f,x0,x1,tol,maxIts)
Here f (x) is the function whose root we are trying to approximate and df (x) is its derivative.
b. Call your three functions with f(x)=x^3-2 . Print the output and attach it to your
assignment.