%% script file to solve a simple system of equations
function exampleSystem() % quick fix for Matlab 
x0 = [1;1];

function y = F(x)
  y = [x(1)^2+4*x(2)^2-1;
       4*x(1)^4 + x(2)^2-1];
end%function

function dy = DF(x)
  dy = [2*x(1), 8*x(2);
        16*x(1)^3, 2*x(2)];
end%function

[sol,iter] = NewtonSolve('F','DF',x0)
end%function