Exercise 13 (Newton's method)