using Newton's method to solve x cos x %3D 0 starting at 4