newton_raphson_1d function

One-dimensional Newton--Raphson