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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started