1 write two m-files one for the bisection method


1. Write two m-files, one for the bisection method and another for Newton's method.

2. Using both the Bisection method and the Newton method answer the following:

Include the commands you typed into Matlab

a) Find the root to 3, 5, and 8 decimal places of f(x) = x2- 2 starting with an initial approximation of x=1.

b) How many steps did it take for the bisection method to find the root to 3, 5, and 8 decimal places?

c) How many steps did it take for the Newton method to find the root to 3, 5 and 8 decimal places?

3. Use Newton's method to find all the real roots of f(x) = x5+ x4 -4x3 - 3x2- 3x +1

4. Apply Newton's method to the function f(x) = x3 - x with an initial approximation of x=1/√5.  Is the method converging?  What happens?  Explain your answer using the graph of f(x).

5. Use Newton's method on the function (x) = 3√5 . What happens when your initial approximation is not x=0?  Explain your answer using the graph of f(x).

Request for Solution File

Ask an Expert for Answer!!
Mathematics: 1 write two m-files one for the bisection method
Reference No:- TGS0209933

Expected delivery within 24 Hours