A NUMERICAL METHOD FOR SOLVING NONLINEAR PROBLEMS