Question: Problem 3: Write your own matlab code that will find the roots (or zeroes) of a given function by using the Newton-Raphson method discussed in
Problem 3: Write your own matlab code that will find the roots (or zeroes) of a given function by using the Newton-Raphson method discussed in class. This method is based on the following: one starts with an initial guess, then the function is approximated by its tangent line, and one computes the intercept of this tangent line with the x-axis. This x-intercept will typically be a better approximation to the function's root than the original guess. Iterate the method until you reach the prescribed tolerance, say abs(x1-x0)<=10^(-8) and abs(y)<=10^(-8). Find all roots of y=x^4-x-4 and print them with 4 decimal places.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
