% This is the program that you run to solve a system of algebraic
% nonlinear equations.  The nonlinear equations are written in a 
% file called sys_non_eq.m.  
% 
% The objective is to find the x vector that is the solution to the 
% the system of nonlinear algebraic equations.  For the program to 
% run, you need to first provide an INITIAL GUESS of the x vector.  
% This guess is given below.

x0=[-5;4;3];
%then execute the function as follows
Y=fminsearch(@sys_non_eq,x0)

% Once you get an answer, make sure to substitute back in the 
% equations to see if the solution is indeed correct.  It is a
% well known fact that the computer can be wrong :)
%
