MATLAB: How to find the roots of given function y=x^4-x-4

find roots

Problem Description:
Write a code that will find the roots (or zeroes) of a given function by using the Newton-Raphson method. 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.
I feel completely lost on this one, like should I use fzero?

Best Answer

roots([1 0 0 -1 -4])