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.
1
Expert's answer
2012-10-24T08:56:46-0400
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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment