using Newton's method to solve x cos x = 0 starting at 4