Using x0 as a starting point find a minimum of the scalar function f. The Newton-Raphson method is used.
Package: optim