Task 1

Newton's method for finding a root