Using and understanding the Newton-Raphson formula