Newton's method example.