Modificar algoritmo nlm de Numerical Methods for Unconstrained Optimization and Nonlinear Equations