function F = example4240(x)

F(1) = exp(-exp(-(x(1)+x(2)))) - x(2)*(1+x(1)^2);
F(2) = x(1)*cos(x(2)) + x(2)*sin(x(1)) - 0.5;


% Help on how to write a function in matlab: 
% se.mathworks.com/help/matlab/ref/function.html

% The example above is the same discussed in:
% se.mathworks.com/help/optim/ug/fsolve.html