# 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.

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment