summaryrefslogtreecommitdiff
path: root/demos/exam.sce
blob: e054eff7085e31b1b538035785008033aecbea0f (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] = intfminbnd(f,[1], [1 2],[2 6])