summaryrefslogtreecommitdiff
path: root/exam.sce~
blob: ae3a2eb8ddabe03160091a31117f11ba6eceb5ed (plain)
1
2
3
4
5
function y = f(x) 
  y = 3*x(1)^2 + 2*x(1)*x(2) + x(2)^2 - 4*x(1) + 5*x(2) ;
endfunction

[xval, fval, status, gradient, hessian] = intfminunc(f,[1], [1 2],[2 6])