Newton's Method MATLAB Code

I modified Prof. Smyth’s code to make it possible for the user to set
the number of iterations. Further, I made the computer print the
current value of the guess at each iteration. This helps to see how
quickly Newton’s Method converges to chosen tolerance.