# Answer to Question #17150 in Other Math for saeed

Question #17150

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.

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.

Expert's answer

Unfortunately, your question requires a lot of work and cannot be done for free.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment