% Numerical Mathematics and Computing, Fifth Edition % Ward Cheney & David Kincaid % Brooks/Cole Publ. Co. % (c) 2003 % % file: gauss_newton.m % % Newton's Mehtod for Solving Nonlinear System % of Equations: % Matlab 'fsolve' uses an advanced algorithm called % the Gauss-Newton method. % The M-file in which the function 'Fcn' is defined % is called 'Fcn.m'. % (Matlab Optimization Toolbox is used.) X0 = [0, 0, 0]; X = fsolve('Fcn', X0)